# assert-node-version

> Asserts the node version against one from the package.json or .nvmrc file

Latest version **1.0.3** (published 2015-09-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install assert-node-version
pnpm add assert-node-version
yarn add assert-node-version
bun add assert-node-version
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2015-09-14 |
| First published | 2015-09-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Marc Bachmann |
| Maintainers | marcbachmann |
| Keywords | assert, version, node |

## Links

- npm: https://www.npmjs.com/package/assert-node-version
- Repository: https://github.com/marcbachmann/assert-node-version
- Homepage: https://github.com/marcbachmann/assert-node-version#readme
- Issues: https://github.com/marcbachmann/assert-node-version/issues
- npm.io page: https://npm.io/package/assert-node-version

## Dependencies (2)

- [semver](https://npm.io/package/semver.md) ^5.0.3
- [expected-node-version](https://npm.io/package/expected-node-version.md) ^1.0.0

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2015-09-14
- 1.0.2 — 2015-09-12
- 1.0.1 — 2015-09-12
- 1.0.0 — 2015-09-12

## README

# assert-node-version

A module to assert the current node version against the one
in the package.json or .nvmrc file.

## API
```javascript
// directory can be a directory which is used to lookup the node version
// `process.cwd()` is used as default directory
// The method throws an error if the version isn't satisfied
require('assert-node-version')([directory])
```

---
_Source: https://npm.io/package/assert-node-version · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
