{"library":"assert-node-version","type":"library","category":null,"description":"assert-node-version is a lightweight utility designed to programmatically verify the current Node.js runtime version against a specified requirement, typically defined in a project's `package.json` file under the `engines.node` field or within a `.nvmrc` file. The current stable version is 1.0.3. It operates synchronously and will throw an error if the installed Node.js version does not meet the specified criteria, effectively halting execution early in scenarios where version compatibility is critical. This package offers a simple, direct API with minimal configuration, differentiating itself by its singular focus on version assertion and its reliance on common project configuration files rather than complex custom setup. Its release cadence appears to be stable and infrequent, reflecting its mature and focused functionality.","language":"javascript","status":"active","version":"1.0.3","tags":["javascript","assert","version","node"],"last_verified":"Wed May 27","install":[{"cmd":"npm install assert-node-version","imports":["const assertNodeVersion = require('assert-node-version');","require('assert-node-version')();"]},{"cmd":"yarn add assert-node-version","imports":[]},{"cmd":"pnpm add assert-node-version","imports":[]}],"homepage":null,"github":"https://github.com/marcbachmann/assert-node-version","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/assert-node-version","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/assert-node-version/compatibility"}}