N
N
Nonno2018-05-05 19:29:25
Node.js
Nonno, 2018-05-05 19:29:25

Where can I find examples of console applications on node?

I know where to find it, it's obvious on github, but I can't find it.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
L
longclaps, 2018-05-05
@longclaps

We hid) look
npm- it is console.

D
denismaster, 2018-05-05
@denismaster

For example, Angular CLI .
Or webpack .

A
Andrey Tsvetkov, 2018-05-06
@yellow79

Here is a nodejs console application that reads the stdin stream, converts the text to uppercase and dumps it to stdout

// main.js
var readline = require('readline');
var rl = readline.createInterface({
  input: process.stdin
});
rl.on('line', function(line){
    console.log(line.toUpperCase());
});
rl.on('end', function(){
    process.exit(0);
});

Run like this:
cat some.file.txt | node main.js

A
Anton, 2018-05-05
@SPAHI4

https://www.google.com/search?q=node%20console%20f...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question