Procedurally generates a radio weather report

files and bin

+3
package-lock.json
··· 12 "json5": "2.2.3", 13 "openweather-api-node": "3.1.5" 14 }, 15 "devDependencies": { 16 "@types/node": "24.3.0", 17 "@vitest/coverage-v8": "3.2.4",
··· 12 "json5": "2.2.3", 13 "openweather-api-node": "3.1.5" 14 }, 15 + "bin": { 16 + "morning-report": "distribution/src/index.js" 17 + }, 18 "devDependencies": { 19 "@types/node": "24.3.0", 20 "@vitest/coverage-v8": "3.2.4",
+6
package.json
··· 19 }, 20 "type": "module", 21 "main": "distribution/index.js", 22 "scripts": { 23 "build": "tsc", 24 "start": "node distribution/src/index.js",
··· 19 }, 20 "type": "module", 21 "main": "distribution/index.js", 22 + "bin": { 23 + "morning-report": "./distribution/src/index.js" 24 + }, 25 + "files": [ 26 + "distribution" 27 + ], 28 "scripts": { 29 "build": "tsc", 30 "start": "node distribution/src/index.js",
+1
src/index.ts
··· 1 import path from 'path'; 2 import fsp from 'fs/promises'; 3 import json5 from 'json5';
··· 1 + #!/usr/bin/env node 2 import path from 'path'; 3 import fsp from 'fs/promises'; 4 import json5 from 'json5';