# @nielse63/check-node-version

> Validates the current node version against the value declared in .nvmrc

Latest version **1.0.1** (published 2020-02-09) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @nielse63/check-node-version
pnpm add @nielse63/check-node-version
yarn add @nielse63/check-node-version
bun add @nielse63/check-node-version
```

Provides the command `check-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.1 |
| Published | 2020-02-09 |
| First published | 2020-02-09 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 16.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Erik Nielsen |
| Maintainers | nielse63 |

## Links

- npm: https://www.npmjs.com/package/@nielse63/check-node-version
- Repository: https://github.com/nielse63/enjs
- Homepage: https://github.com/nielse63/enjs/tree/master/packages/check-node-version#readme
- Issues: https://github.com/nielse63/enjs/issues?labels=check-node-version
- npm.io page: https://npm.io/package/@nielse63/check-node-version

## Dependencies (2)

- [@nielse63/exec](https://npm.io/package/@nielse63/exec.md) ^1.0.4
- [find-nearest-file](https://npm.io/package/find-nearest-file.md) ^1.1.0

## Recent versions

- 1.0.1 (latest) — 2020-02-09
- 1.0.0 — 2020-02-09

## README

# @nielse63/check-node-version

> Validates the current node version against the value declared in .nvmrc

## Installation

```bash
npm i -S @nielse63/check-node-version
yarn add @nielse63/check-node-version
```

## Usage

### Node API

```js
const checkNodeVersion = require('@nielse63/check-node-version');

const output = checkNodeVersion();
// { current: '12.10.0', desired: '12.10.0', isEqual: true }
```

### CLI

```bash
# install cli
npm i -g @nielse63/check-node-version

check-node-version
# exit code 1 if versions don't match
```

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