Last change
on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | # Node.js releases data
|
---|
2 |
|
---|
3 | All data is located in `data` directory.
|
---|
4 |
|
---|
5 | `data/raw` contains raw data `nodejs.json` and `iojs.json`.
|
---|
6 |
|
---|
7 | `data/processed` contains `envs.js` with both node.js and io.js data preprocessed to be used by [browserlist](https://github.com/ai/browserslist) and other projects. Each version in this file contains only necessary info: version, release date and optionally LTS flag.
|
---|
8 |
|
---|
9 | ## Installation
|
---|
10 | ```bash
|
---|
11 | npm install --save node-releases
|
---|
12 | ```
|
---|
13 |
|
---|
14 | ## Updating data
|
---|
15 | ```bash
|
---|
16 | npm run build
|
---|
17 | ```
|
---|
18 | This is a build script which fetches data from web, processes it and saves processed data to `data/processed/envs.json`. If you want to run this steps separately you can use commands described below.
|
---|
19 |
|
---|
20 |
|
---|
21 | ### Fetching data
|
---|
22 | ```bash
|
---|
23 | npm run fetch
|
---|
24 | ```
|
---|
25 | This npm script will download new data to `data/raw` directory. Also it'll download Node.js release schedule into `release-schedule` folder.
|
---|
26 |
|
---|
27 | ### Processing data
|
---|
28 | ```bash
|
---|
29 | npm run process
|
---|
30 | ```
|
---|
31 | This script generates `envs.json` file from raw data files and saves it to `data/processed` directory.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.