|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
1.4 KB
|
| Rev | Line | |
|---|
| [9af201e] | 1 | # Node.js releases data
|
|---|
| 2 |
|
|---|
| 3 | [](https://www.npmjs.com/package/node-releases)
|
|---|
| 4 | [](./LICENSE)
|
|---|
| 5 |
|
|---|
| 6 | All data is located in `data` directory.
|
|---|
| 7 |
|
|---|
| 8 | `data/processed` contains `envs.json` with node.js releases data preprocessed to be used by [Browserslist](https://github.com/ai/browserslist) and other projects. Each version in this file contains only necessary info: version, release date, LTS flag/name, and security flag.
|
|---|
| 9 |
|
|---|
| 10 | `data/release-schedule` contains `release-schedule.json` with node.js releases date and end of life date.
|
|---|
| 11 |
|
|---|
| 12 | ## Installation
|
|---|
| 13 |
|
|---|
| 14 | ```bash
|
|---|
| 15 | npm install node-releases
|
|---|
| 16 | ```
|
|---|
| 17 |
|
|---|
| 18 | ## Usage
|
|---|
| 19 |
|
|---|
| 20 | ```js
|
|---|
| 21 | // CommonJS
|
|---|
| 22 | const envs = require('node-releases/data/processed/envs.json');
|
|---|
| 23 | const schedule = require('node-releases/data/release-schedule/release-schedule.json');
|
|---|
| 24 |
|
|---|
| 25 | // ESM (Node.js 22+)
|
|---|
| 26 | import envs from 'node-releases/data/processed/envs.json' with { type: 'json' };
|
|---|
| 27 | import schedule from 'node-releases/data/release-schedule/release-schedule.json' with { type: 'json' };
|
|---|
| 28 | ```
|
|---|
| 29 |
|
|---|
| 30 | ## Releases
|
|---|
| 31 |
|
|---|
| 32 | Releases are published automatically by a nightly GitHub Actions workflow whenever upstream Node.js release data changes. Publishing uses [npm trusted publishing](https://docs.npmjs.com/trusted-publishers) (OIDC, no long-lived tokens) and ships [provenance attestations](https://docs.npmjs.com/generating-provenance-statements).
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.