node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

nodeversioncheck

Node version check

Installation

npm install nodeversioncheck

Usage

require("nodeversioncheck");

Will exit the process with code 1 if the node version running is not compatible with the one specified in package.json of working directory