0.0.1 • Published 8 years ago

check-engines-instant v0.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

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.
require('check-engines-instant')();

// Customize program exit code
require('check-engines-instant')(-2);

// Call a callback function instead of terminating program.
require('check-engines-instant')(function(err) {
  // Do someting after check
  // `err` argument is the same as the one in callback of check-engines
});

// Print errors only.
require('check-engines-instant')(function(err) {});

// Start your program now.
// ...

For more informations, see krupple/check-engines

0.0.1

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago