包详细信息

nvmrc

nvm-sh497MIT1.1.1

command-line tool to validate a .nvmrc file

nvm, nvmrc, validate

自述文件

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

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.1 - 2025-11-24

Fixed

  • [Fix] reject invalid semver ranges #2

Commits

  • [Dev Deps] update @ljharb/eslint-config, auto-changelog, c8, tape 62f24bc
  • [Dev Deps] update @ljharb/eslint-config, eslint, npmignore 32ee92c
  • [Tests] replace aud with npm audit bea2633
  • [meta] add missing peer dep 673d7d9

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