๐Ÿ“ฆ nvm-sh / nvmrc

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

โ˜… 14 stars โ‘‚ 6 forks ๐Ÿ‘ 14 watching โš–๏ธ MIT License
nvmnvmrcvalidate
๐Ÿ“ฅ Clone https://github.com/nvm-sh/nvmrc.git
HTTPS git clone https://github.com/nvm-sh/nvmrc.git
SSH git clone git@github.com:nvm-sh/nvmrc.git
CLI gh repo clone nvm-sh/nvmrc
Jordan Harband Jordan Harband v1.1.1 9d979a6 1 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .github
๐Ÿ“ test
๐Ÿ“„ .eslintrc
๐Ÿ“„ .gitignore
๐Ÿ“„ .npmrc
๐Ÿ“„ .nycrc
๐Ÿ“„ CHANGELOG.md
๐Ÿ“„ LICENSE
๐Ÿ“„ nvmrc.mjs
๐Ÿ“„ package.json
๐Ÿ“„ README.md
๐Ÿ“„ README.md

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.