1.0.1 • Published 3 years ago

node-check-version v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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:

PropertyDefaultOptionsRequiredDescription
version-all node versionsyesthis property defines the nodejs version to run on this project
typewarningwarning or errornothis 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":

gif como funciona o processo de commit

type: "warning":

gif como funciona o processo de commit


everything is ready