{"size": 519, "ext": "js", "max_stars_repo_path": "index.js", "max_stars_repo_name": "icy-comet/github-dark-chroma-theme", "max_stars_repo_stars_event_min_datetime": "2021-09-27T13:59:33.000Z", "max_stars_repo_stars_event_max_datetime": "2021-09-27T13:59:33.000Z", "max_issues_repo_path": "index.js", "max_issues_repo_name": "icy-comet/github-dark-chroma-theme", "max_issues_repo_issues_event_min_datetime": "2021-09-27T17:42:00.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-27T17:42:00.000Z", "max_forks_repo_path": "index.js", "max_forks_repo_name": "icy-comet/github-dark-chroma-theme", "max_forks_repo_forks_event_min_datetime": "2021-09-27T17:27:06.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-27T17:27:06.000Z"}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": 1, "avg_line_length": 34.6, "max_line_length": 92, "alphanum_fraction": 0.6724470135}
const fs = require("fs/promises"); // node's built-in package
const jss = require("jss").default; // seems to be a problem with JSS' API
const preset = require("jss-preset-default").default; // seems to be a problem with JSS' API
const styles = require("./src/styles");

jss.setup(preset());

const stylesheet = jss.createStyleSheet(styles, {
  generateId: (rule) => `${rule.key}`,
});

fs.writeFile("highlight.css", stylesheet.toString())
  .then(() => console.log("CSS file saved!"))
  .catch((e) => console.log(e));
