verify-node-version

Checks the user's node and npm versions against those listed in .nvmrc/.node-version and .npmrc/.npm-version

Usage no npm install needed!

<script type="module">
  import verifyNodeVersion from 'https://cdn.skypack.dev/verify-node-version';
</script>

README

verify-node-version

A super simple module that checks a user's node/npm versions against your .nvmrc and .npmrc.

Usage

import verifyNodeVersion from 'verify-node-version';

verifyNodeVersion();

If the versions match, the function returns undefined. If the versions don't match, it will display a pretty little explanation and process.exit(1).

> npm start
>
> The required node version is 5.9.1 and you're currently running 6.7.0