open-index/open-npm huggingface dataset:
npm package: @nielse63/check-node-version
Description: Validates the current node version against the value declared in .nvmrc
Author: Erik Nielsen
Latest version: 1.0.1

# @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
```