« Back to Search  |  Reader Mode  |  Switch to Full Retro Site View Links: Stay in Reader  |  Retro Mode: ON  |  Original »
GitHub · Extracted in 692 ms

GitHub - nvm-sh/nvmrc: command-line tool to validate a `.nvmrc` file

Source: https://github.com/nvm-sh/nvmrc

Repository navigation

nvmrc
Public

About

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

Topics

nvm nvmrc validate

Resources

Readme MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy Activity Custom properties

Stars

21 stars

Watchers

3 watching

Forks

14 forks Report repository
Branches

Tags
Go to Branches page Go to Tags page

Latest commit

 

History


44 Commits
View commit history for this file.

Folders and files

Name Name Last commit message Last commit date
.github .github    
test test    
.attw.json .attw.json    
.gitattributes .gitattributes    
.gitignore .gitignore    
.npmrc .npmrc    
.nycrc .nycrc    
CHANGELOG.md CHANGELOG.md    
LICENSE LICENSE    
README.md README.md    
eslint.config.mjs eslint.config.mjs    
index.d.mts index.d.mts    
index.mjs index.mjs    
nvmrc.mjs nvmrc.mjs    
package.json package.json    
tsconfig.json tsconfig.json    

Repository files navigation

nvmrc

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.

About

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

Topics

nvm nvmrc validate

Resources

Readme MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy Activity Custom properties

Stars

21 stars

Watchers

3 watching

Forks

14 forks Report repository

Releases

Sponsor this project

Used by

Contributors

Languages