JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 279023
  • Score
    100M100P100Q167608F
  • License MIT

Returns a promise which resolves once all data in the supplied stream has been read

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

view on npm npm module downloads Build Status Coverage Status Dependency Status js-standard-style

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.