Assert Node.js Version
JSON →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.
Traffic · last 30 days ↓56% vs prev 7d
top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada