package-engines-notifier
warns users about incompatible Node.js versions per engines in package.json
Usage
enginesNotify(options: EnginesNotifierOptions) => Error | null
type EnginesNotifierOptions = { pkg: PackageJson}
-
see upstream documentation for PackageJson
-
if there is engine trouble, outputs a message using
console.error()
, and returns anError
-
otherwise, no output, and returns
null
Example
const enginesNotify = const pkg = if // uh-oh, the user's engines don't match, stop right here return // TODO: what your script does when engines match
Contributing
Development
npm install --global flow-typednpm installflow-typed installnpm test