()
| 2 | const vm = require('vm'); |
| 3 | |
| 4 | function readInput() { |
| 5 | const inputPath = process.argv[2]; |
| 6 | if (!inputPath) { |
| 7 | throw new Error('missing_input_path'); |
| 8 | } |
| 9 | return JSON.parse(fs.readFileSync(inputPath, 'utf8')); |
| 10 | } |
| 11 | |
| 12 | function makeStorage() { |
| 13 | const store = new Map(); |