Upload code from "Getting Started With Node" module
parent
4f3722ceb5
commit
911f6e4c29
@ -0,0 +1,6 @@
|
||||
console.log('Current user is', process.env.USER);
|
||||
|
||||
console.log('\nScript executed with:');
|
||||
|
||||
console.log('VAL1 equal to:', process.env.VAL1);
|
||||
console.log('VAL2 equal to:', process.env.VAL2);
|
@ -0,0 +1,6 @@
|
||||
process.stdin.on('readable', () => {
|
||||
const chunk = process.stdin.read();
|
||||
if (chunk !== null) {
|
||||
process.stdout.write(chunk);
|
||||
}
|
||||
});
|
@ -0,0 +1,7 @@
|
||||
setTimeout(() => process.exit(), 2000);
|
||||
|
||||
process.on('exit', () => {
|
||||
console.log('Process will exit now. See you later!');
|
||||
});
|
||||
|
||||
console.log('Hello!');
|
Loading…
Reference in New Issue