Skip to content

Instantly share code, notes, and snippets.

@Vlasakh
Vlasakh / nvmCommands.js
Created October 19, 2022 19:48 — forked from chranderson/nvmCommands.js
Useful NVM commands
// check version
node -v || node --version
// list installed versions of node (via nvm)
nvm ls
// install specific version of node
nvm install 6.9.2
// set default version of node
import { createLogger } from 'redux-logger'
const typeRegEx = /Symbol\((.*?)\)/
const logger = createLogger({
actionTransformer: action => ({
...action,
type: String(action.type).match(typeRegEx)[1]
})
})
11