1.0.4 • Published 5 years ago

nvm-guard v1.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

nvm-guard

Enforce correct .nvmrc version when running npm scripts

npm version npm downloads npm license eslint

Installation

npm install nvm-guard --save-dev

Why?

nvm-guard protects your npm scripts for being ran with wrong Node.js version. Make sure that all contributors are using the specified version and avoid unnecessary dependency hassle.

Usage

In your package.json add nvm-guard as a pre-hook or before the scripts you want to protect.

{
  "scripts": {
    // When running npm run eslint, we'll first call nvm-guard, then ESLint if nvm-guard passes
    "eslint": "nvm-guard && eslint src/",

    // Will be called before npm test
    // npm docs: https://docs.npmjs.com/misc/scripts
    "pretest": "nvm-guard",
  }
}

Related

License

MIT © Daniel Eckermann

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago