Check if the runtime Node version satisfies some version
This module is meant to help out with running things only if the runtime version of node is greater than or equal a given version, such as 4.
The module exposes a binary called
node-version-check, which takes a string to check against as an argument.
Example usage is for example to not run
eslint>=3 on version of node less than 4.
satisfies under the hood, this allows you to check
against any arbitrary version, such as exact (
node-version-check '4.0.0') or minor (
For convenience, a binary to check whether the node version is >=4 and <4 is also included.
A bin with
lt is also included to avoid having to handle the OR case.
There are also binaries for