Package Exports
- stream-read-all
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stream-read-all) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
stream-read-all
Returns a promise which resolves once all data in the supplied stream has been read.
This example script...
async function printInput () {
const streamReadAll = require('stream-read-all')
const stdin = await streamReadAll(process.stdin)
console.log(stdin.toString())
}
printInput()
...prints this output.
$ echo Hello | node example.js
Hello
© 2017-20 Lloyd Brookes 75pound@gmail.com.