{"id":45825053,"url":"https://github.com/pkgjs/nv","last_synced_at":"2026-02-26T21:51:09.441Z","repository":{"id":44677187,"uuid":"211228347","full_name":"pkgjs/nv","owner":"pkgjs","description":"Tool for getting node versions by common aliases","archived":false,"fork":false,"pushed_at":"2025-09-21T16:48:11.000Z","size":65,"stargazers_count":25,"open_issues_count":4,"forks_count":6,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-10-22T12:15:02.688Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pkgjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-09-27T03:25:53.000Z","updated_at":"2025-09-18T17:24:55.000Z","dependencies_parsed_at":"2025-08-25T16:15:10.252Z","dependency_job_id":"ef6fb22f-4b46-4162-9fc9-3a5881cb3a7a","html_url":"https://github.com/pkgjs/nv","commit_stats":{"total_commits":37,"total_committers":6,"mean_commits":6.166666666666667,"dds":0.4864864864864865,"last_synced_commit":"ee7a4b994b694064028490461e6ac1385a9a894f"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/pkgjs/nv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkgjs%2Fnv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkgjs%2Fnv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkgjs%2Fnv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkgjs%2Fnv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pkgjs","download_url":"https://codeload.github.com/pkgjs/nv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkgjs%2Fnv/sbom","scorecard":{"id":736434,"data":{"date":"2025-08-11","repo":{"name":"github.com/pkgjs/nv","commit":"ee7a4b994b694064028490461e6ac1385a9a894f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/20 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/pkgjs/nv/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/pkgjs/nv/test.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/pkgjs/.github/SECURITY.md:1","Info: Found linked content: github.com/pkgjs/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/pkgjs/.github/SECURITY.md:1","Info: Found text in security policy: github.com/pkgjs/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T16:00:11.016Z","repository_id":44677187,"created_at":"2025-08-22T16:00:11.016Z","updated_at":"2025-08-22T16:00:11.016Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29873854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T21:05:00.265Z","status":"ssl_error","status_checked_at":"2026-02-26T20:57:13.669Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-26T21:51:08.915Z","updated_at":"2026-02-26T21:51:09.428Z","avatar_url":"https://github.com/pkgjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Get information about Node.js versions\n\n[![NPM Version](https://img.shields.io/npm/v/@pkgjs/nv.svg)](https://npmjs.org/package/@pkgjs/nv)\n[![NPM Downloads](https://img.shields.io/npm/dm/@pkgjs/nv.svg)](https://npmjs.org/package/@pkgjs/nv)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/standard/standard)\n[![CI Test](https://github.com/pkgjs/nv/workflows/Test/badge.svg)](https://github.com/pkgjs/nv/actions)\n\nThis repository is managed by the [Package Maintenance Working Group](https://github.com/nodejs/package-maintenance), see [Governance](https://github.com/nodejs/package-maintenance/blob/master/Governance.md).\n\n## Usage\n\n```\n$ npm i @pkgjs/nv\n```\n\n```\n$ npx @pkgjs/nv --help\n\nnv \u003ccommand\u003e\n\nCommands:\n  nv ls [versions...]  List Node.js versions                     [aliases: show]\n\nOptions:\n  --help     Show help                                                 [boolean]\n  --version  Show version number                                       [boolean]\n\n```\n\n```\n$ npx @pkgjs/nv ls --help\n\nnv ls [versions...]\n\nList Node.js versions\n\nOptions:\n  --help                  Show help                                    [boolean]\n  --version               Show version number                          [boolean]\n  --mirror                mirror url to load from\n                                    [string] [default: https://nodejs.org/dist/]\n  --pretty-json           Pretty print json\n    [string] [default: pretty print json spaces, default 2 (--no-pretty-json for\n                                                        new line delimted json)]\n  --latest-of-major-only  Only show latest version in each semver major range\n                                                      [boolean] [default: false]\n  --versions                                             [default: \"lts_active\"]\n```\n\n```javascript\nconst nv = require('@pkgjs/nv')\n\n(async () =\u003e {\n  const versions = await nv('lts')\n  console.log(versions)\n  /*\n[\n  {\n    \"version\": \"18.18.2\",\n    \"major\": 18,\n    \"minor\": 18,\n    \"patch\": 2,\n    \"tag\": \"\",\n    \"codename\": \"hydrogen\",\n    \"versionName\": \"v18\",\n    \"start\": \"2022-04-19T00:00:00.000Z\",\n    \"lts\": \"2022-10-25T00:00:00.000Z\",\n    \"maintenance\": \"2023-10-18T00:00:00.000Z\",\n    \"end\": \"2025-04-30T00:00:00.000Z\",\n    \"releaseDate\": \"2023-10-13T00:00:00.000Z\",\n    \"isLts\": true,\n    \"files\": [\n      \"aix-ppc64\",\n      \"headers\",\n      \"linux-arm64\",\n      \"linux-armv7l\",\n      \"linux-ppc64le\",\n      \"linux-s390x\",\n      \"linux-x64\",\n      \"osx-arm64-tar\",\n      \"osx-x64-pkg\",\n      \"osx-x64-tar\",\n      \"src\",\n      \"win-x64-7z\",\n      \"win-x64-exe\",\n      \"win-x64-msi\",\n      \"win-x64-zip\",\n      \"win-x86-7z\",\n      \"win-x86-exe\",\n      \"win-x86-msi\",\n      \"win-x86-zip\"\n    ],\n    \"dependencies\": {\n      \"npm\": \"9.8.1\",\n      \"v8\": \"10.2.154.26\",\n      \"uv\": \"1.44.2\",\n      \"zlib\": \"1.2.13.1-motley\",\n      \"openssl\": \"3.0.10+quic\"\n    }\n  }\n]\n  */\n})()\n```\n\nYou can also pass an array of aliases and the resulting array will be sorted and de-duped, for example:\n\n```javascript\nconst versions = await nv(['lts', 'supported'])\nconsole.log(versions.map((v) =\u003e v.version))\n/*\n[ '8.16.1', '10.16.3', '12.11.0' ]\n*/\n```\n\n## Supported Aliases\n\n**Support Aliases**\n\nFor now referenced here until we have a more official doc: https://github.com/nodejs/package-maintenance/issues/236#issue-474783582\n\n- `all`: All node versions\n- `lts_active`: Head of LTS and Active major version lines\n- `lts`: Head of current LTS lines\n- `active`: The newest version in the active but not maintenance mode lines\n- `lts_latest`/`lts/*`: Latest of the LTS lines (`lts/*` for nvm compatibility)\n- `supported`: Head of all maintained lines\n- *DEPRECATED* `maintained`: Head of all maintained lines\n- `current`/`node`: Newest of all maintained lines (`node` for nvm compatibility)\n\n**Version Aliases**\n\n- `v6`, `v8`, `v10`, `v12`, etc: Head of major version line by version number\n- `dubnium`, `carbon`: Named alias for LTS lines\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkgjs%2Fnv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpkgjs%2Fnv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkgjs%2Fnv/lists"}