* Creates a promise which reads from standard input. Even though it would * be easy to make a function that just returns the data, we return a promise * for consistency with readFromUrl and readFromFile. * @return {Promise }
()
| 78 | * @return {Promise<string>} |
| 79 | */ |
| 80 | function readFromStdin() { |
| 81 | return readFromReadable('stdin', process.stdin).then(function(data) { |
| 82 | process.stdin.resume(); |
| 83 | return data; |
| 84 | }); |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * Creates a promise which reads from a URL or more precisely, fetches |
no test coverage detected