1.0.1 • Published 4 years ago
node-check-version v1.0.1
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-versionyarn:
yarn add node-check-versionCreate 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'
...Result when a Node version conflict occurs:
type: "error":

type: "warning":
