Skip to content
/ nvmrc Public

command-line tool to validate a `.nvmrc` file

License

Notifications You must be signed in to change notification settings

nvm-sh/nvmrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.