verify-node-version

0.0.7 • Public • Published

verify-node-version

A super simple module that checks a user's node/npm versions against your .nvmrc and .npmrc.

Usage

import verifyNodeVersion from 'verify-node-version';
 
verifyNodeVersion();

If the versions match, the function returns undefined. If the versions don't match, it will display a pretty little explanation and process.exit(1).

> npm start
>
> The required node version is 5.9.1 and you're currently running 6.7.0

Readme

Keywords

none

Package Sidebar

Install

npm i verify-node-version

Weekly Downloads

0

Version

0.0.7

License

MIT

Last publish

Collaborators

  • vincecoppola