node-check-version
v1.0.1
Published
### This package makes a quick check that the version of the node being run is the same as the version defined by the project.
Downloads
5
Readme
Node Check Version Package
This package makes a quick check that the version of the node being run is the same as the version defined by the project.
How to use?
npm:
npm install node-check-version
yarn:
yarn add node-check-version
Create nodeVersion.json file in the project root:
{
"version": "14.17.3",
"type": "warning"
}
Properties:
| Property | Default | Options | Required | Description | |----------|---------|-------------------|----------|-----------------------------------------------------------------| | version | - | all node versions | yes | this property defines the nodejs version to run on this project | | type | warning | warning or error | no | this property defines the type of message to be displayed |
import the package into your main file:
index.js
//require('node-check-version')
import 'node-check-version'
...