{"id":15007686,"url":"https://github.com/ehmicky/all-node-versions","last_synced_at":"2025-03-17T11:10:12.868Z","repository":{"id":39156260,"uuid":"201256922","full_name":"ehmicky/all-node-versions","owner":"ehmicky","description":"List all available Node.js versions","archived":false,"fork":false,"pushed_at":"2024-09-14T16:52:55.000Z","size":8052,"stargazers_count":11,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-13T08:04:08.358Z","etag":null,"topics":["bash","cli","command-line","dependency-management","es6","exec","javascript","library","node","nodejs","npmjs","npx","nvm","operating-system","package-manager","shell","terminal","typescript","versioning","versions"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ehmicky.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}},"created_at":"2019-08-08T12:47:56.000Z","updated_at":"2024-09-14T16:52:59.000Z","dependencies_parsed_at":"2024-07-13T21:48:02.678Z","dependency_job_id":"84ad42e6-cd41-49db-904d-45927ef96601","html_url":"https://github.com/ehmicky/all-node-versions","commit_stats":{"total_commits":595,"total_committers":4,"mean_commits":148.75,"dds":"0.030252100840336138","last_synced_commit":"cfa9a449aaff307250d79bd79d3f9464c829942a"},"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehmicky%2Fall-node-versions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehmicky%2Fall-node-versions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehmicky%2Fall-node-versions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehmicky%2Fall-node-versions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ehmicky","download_url":"https://codeload.github.com/ehmicky/all-node-versions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244022647,"owners_count":20385135,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["bash","cli","command-line","dependency-management","es6","exec","javascript","library","node","nodejs","npmjs","npx","nvm","operating-system","package-manager","shell","terminal","typescript","versioning","versions"],"created_at":"2024-09-24T19:13:23.365Z","updated_at":"2025-03-17T11:10:12.826Z","avatar_url":"https://github.com/ehmicky.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"[![Node](https://img.shields.io/badge/-Node.js-808080?logo=node.js\u0026colorA=404040\u0026logoColor=66cc33)](https://www.npmjs.com/package/all-node-versions)\n[![TypeScript](https://img.shields.io/badge/-Typed-808080?logo=typescript\u0026colorA=404040\u0026logoColor=0096ff)](/src/main.d.ts)\n[![Codecov](https://img.shields.io/badge/-Tested%20100%25-808080?logo=codecov\u0026colorA=404040)](https://codecov.io/gh/ehmicky/all-node-versions)\n[![Mastodon](https://img.shields.io/badge/-Mastodon-808080.svg?logo=mastodon\u0026colorA=404040\u0026logoColor=9590F9)](https://fosstodon.org/@ehmicky)\n[![Medium](https://img.shields.io/badge/-Medium-808080.svg?logo=medium\u0026colorA=404040)](https://medium.com/@ehmicky)\n\nList all available Node.js versions.\n\nSorted from the most to the least recent. Includes major release and LTS\ninformation.\n\n# Hire me\n\nPlease\n[reach out](https://www.linkedin.com/feed/update/urn:li:activity:7117265228068716545/)\nif you're looking for a Node.js API or CLI engineer (11 years of experience).\nMost recently I have been [Netlify Build](https://github.com/netlify/build)'s\nand [Netlify Plugins](https://www.netlify.com/products/build/plugins/)'\ntechnical lead for 2.5 years. I am available for full-time remote positions.\n\n# Install\n\n```bash\nnpm install all-node-versions\n```\n\nThis package works in Node.js \u003e=18.18.0.\n\nThis is an ES module. It must be loaded using\n[an `import` or `import()` statement](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c),\nnot `require()`. If TypeScript is used, it must be configured to\n[output ES modules](https://www.typescriptlang.org/docs/handbook/esm-node.html),\nnot CommonJS.\n\n# Usage\n\n```js\nimport allNodeVersions from 'all-node-versions'\n\nconst {\n  versions,\n  // [\n  //   { node: '18.4.0', npm: '8.12.1' },\n  //   { node: '18.3.0', npm: '8.11.0' },\n  //   ...\n  //   { node: '0.1.14' },\n  // ]\n  majors,\n  // [\n  //   { major: 18, latest: '18.4.0' },\n  //   { major: 17, latest: '17.9.1' },\n  //   { major: 16, latest: '16.15.1', lts: 'gallium' },\n  //   { major: 15, latest: '15.14.0' },\n  //   { major: 14, latest: '14.19.3', lts: 'fermium },\n  //   { major: 13, latest: '13.14.0' },\n  //   { major: 12, latest: '12.22.12', lts: 'erbium' },\n  //   { major: 11, latest: '11.15.0' },\n  //   { major: 10, latest: '10.24.1', lts: 'dubnium' },\n  //   { major: 9, latest: '9.11.2' },\n  //   { major: 8, latest: '8.17.0', lts: 'carbon' },\n  //   { major: 7, latest: '7.10.1' },\n  //   { major: 6, latest: '6.17.1', lts: 'boron' },\n  //   { major: 5, latest: '5.12.0' },\n  //   { major: 4, latest: '4.9.1', lts: 'argon' },\n  //   { major: 0, latest: '0.12.18' }\n  // ]\n} = await allNodeVersions(options)\n```\n\n## allNodeVersions(options?)\n\n`options`: `object`\\\n_Returns_: `Promise\u003cobject\u003e`\n\n### Return value\n\nThe return value resolves to an object with the following properties.\n\n#### versions\n\n_Type_: `object[]`\n\nList of available Node.js versions and related information. Sorted from the most\nto the least recent Node.js version.\n\n##### node\n\n_Type_: `string`\n\nNode.js version as a `major.minor.patch` string.\n\n##### npm\n\n_Type_: `string?`\n\nDefault NPM version as a `major.minor.patch[-tags]` string. `undefined` if the\n[`node` version](#node) is `0.6.2` or older.\n\n#### majors\n\n_Type_: `object[]`\n\nList of Node.js major releases sorted from the most to the least recent. Each\nmajor release has the following properties.\n\n##### major\n\n_Type_: `number`\n\nMajor version number. `0` for old releases `0.*.*`.\n\n##### latest\n\n_Type_: `string`\n\nLatest version for that major release, as a `major.minor.patch` string.\n\n##### lts\n\n_Type_: `string?`\n\nLTS name, lowercased. `undefined` if the major release is not LTS.\n\n### options\n\n#### mirror\n\n_Type_: `string`\\\n_Default_: `https://nodejs.org/dist`\n\nBase URL to fetch the list of available Node.js versions. Can be customized (for\nexample `https://npmmirror.com/mirrors/node`).\n\nThe following environment variables can also be used: `NODE_MIRROR`,\n`NVM_NODEJS_ORG_MIRROR`, `N_NODE_MIRROR` or `NODIST_NODE_MIRROR`.\n\n#### fetch\n\n_Type_: `boolean`\\\n_Default_: `undefined`\n\nThe list of available Node.js versions is cached for one hour by default. If the\n`fetch` option is:\n\n- `true`: the cache will not be used\n- `false`: the cache will be used even if it's older than one hour\n\n#### signal\n\n_Type_:\n[`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal)\n\nCancels when the signal is aborted.\n\n# See also\n\n- [`nve`](https://github.com/ehmicky/nve): Run a specific Node.js version (CLI)\n- [`nvexeca`](https://github.com/ehmicky/nve): Run a specific Node.js version\n  (programmatic)\n- [`get-node`](https://github.com/ehmicky/get-node): Download Node.js\n- [`preferred-node-version`](https://github.com/ehmicky/preferred-node-version):\n  Get the preferred Node.js version of a project or user\n- [`node-version-alias`](https://github.com/ehmicky/node-version-alias): Resolve\n  Node.js version aliases like `latest`, `lts` or `erbium`\n- [`normalize-node-version`](https://github.com/ehmicky/normalize-node-version):\n  Normalize and validate Node.js versions\n- [`fetch-node-website`](https://github.com/ehmicky/fetch-node-website): Fetch\n  releases on nodejs.org\n\n# Support\n\nFor any question, _don't hesitate_ to [submit an issue on GitHub](../../issues).\n\nEveryone is welcome regardless of personal background. We enforce a\n[Code of conduct](CODE_OF_CONDUCT.md) in order to promote a positive and\ninclusive environment.\n\n# Contributing\n\nThis project was made with ❤️. The simplest way to give back is by starring and\nsharing it online.\n\nIf the documentation is unclear or has a typo, please click on the page's `Edit`\nbutton (pencil icon) and suggest a correction.\n\nIf you would like to help us fix a bug or add a new feature, please check our\n[guidelines](CONTRIBUTING.md). Pull requests are welcome!\n\n\u003c!-- Thanks go to our wonderful contributors: --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://fosstodon.org/@ehmicky\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/8136211?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eehmicky\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/ehmicky/all-node-versions/commits?author=ehmicky\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"#design-ehmicky\" title=\"Design\"\u003e🎨\u003c/a\u003e \u003ca href=\"#ideas-ehmicky\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e \u003ca href=\"https://github.com/ehmicky/all-node-versions/commits?author=ehmicky\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://maxim.mazurok.com\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/7756211?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMaxim Mazurok\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#ideas-Maxim-Mazurok\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e \u003ca href=\"https://github.com/ehmicky/all-node-versions/commits?author=Maxim-Mazurok\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/ehmicky/all-node-versions/commits?author=Maxim-Mazurok\" title=\"Tests\"\u003e⚠️\u003c/a\u003e \u003ca href=\"https://github.com/ehmicky/all-node-versions/commits?author=Maxim-Mazurok\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehmicky%2Fall-node-versions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fehmicky%2Fall-node-versions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehmicky%2Fall-node-versions/lists"}