Package detail

nvmrc

nvm-sh1.1kMIT1.1.0

command-line tool to validate a .nvmrc file

nvm, nvmrc, validate

readme

nvmrc Version Badge

github actions coverage License Downloads

npm badge

command-line tool to validate a .nvmrc file

Example

Run:

$ nvmrc

When valid, the parsed JSON will be logged.

When invalid:

invalid .nvmrc!
all non-commented content (anything after # is a comment) must be either:
  - a single bare nvm-recognized version-ish
  - or, multiple distinct key-value pairs, each key/value separated by a single equals sign (=)

non-commented content parsed:
…

Tests

Simply clone the repo, npm install, and run npm test

Security

Please email @ljharb or see https://tidelift.com/security if you have a potential security vulnerability to report.

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

v1.1.0 - 2024-06-20

Commits

  • [New] add --help, --version; accept a path to another directory; nicer error messages 69371ff
  • [Tests] add more assertions 41a8ad6
  • [Tests] reorganize tests 9e280e5
  • [Tests] import.meta.dirname is not always available 43dbe63
  • [Tests] add more coverage 0d325aa
  • [Dev Deps] update c8, tape 5c481c1
  • [patch] remove extra newline 3a92b47
  • [Deps] update c8 1c01438
  • [Dev Deps] pin eslint 54f028c

v1.0.0 - 2024-06-05

Commits