2.0.0 • Published 4 months ago

check-nvmrc v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

check-nvmrc

Ensures that the node version in the .nvmrc file matches the current node version

Install

npm install check-nvmrc

Usage

From javascript

import { checkNvmrc } from 'check-nvmrc';

checkNvmrc();
// Throws if `.nvmrc` not found or node version mismatch.

From command line

npx check-nvmrc
# Throws if `.nvmrc` not found or node version mismatch.

API

checkNvmrc(options?)

options

Type: object

cwd

Type: string | URL\ Default: process.cwd()

The default directory.

allowSymLinks

Type: boolean Default: true

Follow symlinks.

2.0.0

4 months ago

1.0.1

5 months ago