source: frontend/node_modules/node-releases/README.md

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
RevLine 
[9af201e]1# Node.js releases data
2
3[![npm version](https://img.shields.io/npm/v/node-releases.svg)](https://www.npmjs.com/package/node-releases)
4[![License: MIT](https://img.shields.io/npm/l/node-releases.svg)](./LICENSE)
5
6All 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
15npm install node-releases
16```
17
18## Usage
19
20```js
21// CommonJS
22const envs = require('node-releases/data/processed/envs.json');
23const schedule = require('node-releases/data/release-schedule/release-schedule.json');
24
25// ESM (Node.js 22+)
26import envs from 'node-releases/data/processed/envs.json' with { type: 'json' };
27import schedule from 'node-releases/data/release-schedule/release-schedule.json' with { type: 'json' };
28```
29
30## Releases
31
32Releases 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.