UNPKG

aoc-automation

Version:

Advent of Code tool to automate the repetitive parts of AoC.

13 lines (12 loc) 279 B
import fs from "fs"; import path from "path"; const save = (dir, file, content) => { fs.writeFileSync( path.join(dir, file), typeof content === "string" ? content : JSON.stringify(content, null, 2) ); }; var save_default = save; export { save_default as default };