We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebfaf89 commit beeb2e1Copy full SHA for beeb2e1
src/cp/files/script.js
@@ -1,12 +1,12 @@
1
-const arguments = process.argv.slice(2);
+const args = process.argv.slice(2);
2
3
-console.log(`Total number of arguments is ${arguments.length}`);
4
-console.log(`Arguments: ${JSON.stringify(arguments)}`);
+console.log(`Total number of arguments is ${args.length}`);
+console.log(`Arguments: ${JSON.stringify(args)}`);
5
6
const echoInput = (chunk) => {
7
const chunkStringified = chunk.toString();
8
if (chunkStringified.includes('CLOSE')) process.exit(0);
9
process.stdout.write(`Received from master process: ${chunk.toString()}\n`)
10
};
11
12
-process.stdin.on('data', echoInput);
+process.stdin.on('data', echoInput);
0 commit comments