check-engines-instant
Run check-engines instantly, print errors and exit process if test failed.
Installation
npm install check-engines-instant
Usage
Just require and call this package at the very beginning of your program.
// The very beginning, e.g. The beginning of index.js // Basic usage, program will exit with code -1 if run with an wrong node version.; // Customize program exit code-2; // Call a callback function instead of terminating program. { // Do someting after check // `err` argument is the same as the one in callback of check-engines}; // Print errors only. {}; // Start your program now.// ...
For more informations, see krupple/check-engines