A process manager for node js with advenced cli
$ npm install -g advenced-runner
For | Use |
---|---|
Start a program | ar start {script} |
This will make a log every second, an error and a warn after 2 seconds as well as a log at each input
console.log("hello world");
let i = 0
setInterval(() => {
//log every seconds "hello world" and this id
i++
console.log("hello world " + i);
}, 1000);
setTimeout(() => {
//log a error with code 5 and a warn with code 5
console.error("error", 5)
console.warn("warn", 5)
}, 2000);
process.stdin.on("data", (data) => {
//log the written data
console.log("new input! (" + data + ")");
})