This commit is contained in:
2023-11-30 22:36:04 +01:00
parent 3fa5a03fb2
commit b8bacd133b
75 changed files with 8610 additions and 0 deletions

View File

@ -0,0 +1,16 @@
import { readFileSync } from "fs"
import { argv, exit } from "process"
function main(): void {
console.log(JSON.stringify(argv))
if (argv[2] && argv[2] != "") {
const values = readFileSync(argv[2], "utf8")
const inputs = values.replace('\n', '').split(',')
console.log(JSON.stringify(inputs))
} else {
console.log("No filename")
exit()
}
}
main()

View File

@ -0,0 +1,19 @@
{
"name": "change_me",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"start": "node build/first.js",
"build": "tsc",
"watch": "yarn run build -- -w",
"monitor": "nodemon build/first.js"
},
"dependencies": {
"nodemon": "^2.0.15",
"typescript": "^4.5.2"
},
"devDependencies": {
"@types/node": "^16.11.11"
}
}

View File

@ -0,0 +1,14 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"noImplicitAny": true,
"removeComments": true,
"preserveConstEnums": true,
"outDir": "./build",
"strict":true,
"esModuleInterop":true,
"inlineSourceMap":true
},
"exclude":["node_modules"]
}