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

Usage no npm install needed!

<script type="module">
  import nodeversioncheck from 'https://cdn.skypack.dev/nodeversioncheck';
</script>

README

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