# expected-node-version

> Retrieves the node version from the package.json or .nvmrc file

Latest version **1.0.2** (published 2015-10-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install expected-node-version
pnpm add expected-node-version
yarn add expected-node-version
bun add expected-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.2 |
| Published | 2015-10-15 |
| First published | 2015-09-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Marc Bachmann |
| Maintainers | marcbachmann |
| Keywords | node, version, npmrc |

## Links

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

## 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.2 (latest) — 2015-10-15
- 1.0.1 — 2015-09-12
- 1.0.0 — 2015-09-12

## README

# expected-node-version

## API
var version = require('expected-node-version')([directory])

## Load order
The module tries to load the version using the fastest mechanisms.
It falls pack to loading the package.json content using `require`. So that content should will be cached.

1. fetch version from package.json environment variable, which gets set by `npm start`
2. fetch version from .nvmrc file
3. fetch version from package.json value `engines.node`

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