Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.0 KiB

  1. # stream-combiner2
  2. This is a sequel to
  3. [stream-combiner](https://npmjs.org/package/stream-combiner)
  4. for streams3.
  5. ``` js
  6. var combine = require('stream-combiner2')
  7. ```
  8. ## Combine (stream1,...,streamN)
  9. Turn a pipeline into a single stream. `Combine` returns a stream that writes to the first stream
  10. and reads from the last stream.
  11. Streams1 streams are automatically upgraded to be streams3 streams.
  12. Listening for 'error' will recieve errors from all streams inside the pipe.
  13. ```js
  14. var Combine = require('stream-combiner')
  15. var es = require('event-stream')
  16. Combine( // connect streams together with `pipe`
  17. process.openStdin(), // open stdin
  18. es.split(), // split stream to break on newlines
  19. es.map(function (data, callback) { // turn this async function into a stream
  20. var repr = inspect(JSON.parse(data)) // render it nicely
  21. callback(null, repr)
  22. }),
  23. process.stdout // pipe it to stdout !
  24. )
  25. ```
  26. ## License
  27. MIT