diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-08 11:21:54 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-08 11:23:27 +0100 |
commit | b957163972977fbceee139fc7e586e7f17b50916 (patch) | |
tree | 6763e82c8dbbf474b0334266e4f90b5695a5ea46 /tools | |
parent | 6458bf77fb8b33551a1f44a3d3de4ecd222d2ce6 (diff) | |
download | votes-for-women-b957163972977fbceee139fc7e586e7f17b50916.tar.gz |
Inline data.js
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gendata.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/gendata.js b/tools/gendata.js index f08614f..190caec 100644 --- a/tools/gendata.js +++ b/tools/gendata.js @@ -83,5 +83,4 @@ def_us_state("RI", "Rhode Island", NORTHEAST) def_us_state("VT", "Vermont", NORTHEAST) console.log("const us_state_count =", US_STATES.length) - -fs.writeFileSync("data.js", "const US_STATES = " + JSON.stringify(US_STATES, 0, 0) + "\nif (typeof module !== 'undefined') module.exports = { US_STATES }\n") +console.log("const US_STATES = " + JSON.stringify(US_STATES, 0, 8)) |