aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/static-data/generate-node-schedule.mjs
blob: 1f5e09afeecef0b6e7d76277744215caedc37e24 (plain)
1
2
3
4
5
6
7
8
9
10
11
import got from 'got';
import { updateJsonFile } from './utils.mjs';

const dataUrl =
  'https://raw.githubusercontent.com/nodejs/LTS/HEAD/schedule.json';

await (async () => {
  console.log('Generating node schedule');
  const { body } = await got(dataUrl);
  await updateJsonFile('./data/node-js-schedule.json', body);
})();