requires-node-version

1.0.0 • Public • Published

This is a tool to make logging a Node version mismatch super simple.

Here is the API:

const requires = require('./index.js');
 
requires('9.9.9');
// => This program requires Node 9.9.9 or higher.
// => You are currently using Node v8.9.4.
// => *exits process*
 
requires.between('1.2.3', '6.6.6', 'Ham');
// => Ham is deprecated after Node 6.6.6 or lower.
// => You are currently using Node v8.9.4.
// => *exits process*

Enjoy.

Readme

Keywords

Package Sidebar

Install

npm i requires-node-version

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

1.79 kB

Total Files

3

Last publish

Collaborators

  • seanohue