{"size": 483, "ext": "js", "max_stars_repo_path": "src/compiler.js", "max_stars_repo_name": "xibang/node-common", "max_stars_repo_stars_event_min_datetime": "2017-08-02T07:31:49.000Z", "max_stars_repo_stars_event_max_datetime": "2021-05-27T03:14:00.000Z", "max_issues_repo_path": "src/compiler.js", "max_issues_repo_name": "AirDwing/node-dwing-common", "max_issues_repo_issues_event_min_datetime": "2020-07-17T01:18:08.000Z", "max_issues_repo_issues_event_max_datetime": "2021-03-31T02:44:33.000Z", "max_forks_repo_path": "src/compiler.js", "max_forks_repo_name": "xibang/node-common", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 40.25, "max_line_length": 127, "alphanum_fraction": 0.685300207}
/* eslint-disable import/no-extraneous-dependencies */
const cheerio = require('cheerio');
const tmd = require('to-markdown');
const { readFileSync, writeFileSync } = require('fs');
const path = require('path');

const $ = cheerio.load(readFileSync(path.join(__dirname, '../docs/global.html')));

const md = readFileSync(path.join(__dirname, '../.template.md')).toString().replace('<!-- CODE -->', tmd($('article').html()));

writeFileSync(path.join(__dirname, '../README.md'), md);
