Dieses Repository beinhaltet HTML- und Javascript Code zur einer NotizenWebApp auf Basis von Web Storage. Zudem sind Mocha/Chai Tests im Browser enthalten. https://meinenotizen.netlify.app/
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.

readme.markdown 878B

4 years ago
1234567891011121314151617181920212223242526272829
  1. # PauseStream
  2. This is a `Stream` that will strictly buffer when paused.
  3. Connect it to anything you need buffered.
  4. ``` js
  5. var ps = require('pause-stream')();
  6. badlyBehavedStream.pipe(ps.pause())
  7. aLittleLater(function (err, data) {
  8. ps.pipe(createAnotherStream(data))
  9. ps.resume()
  10. })
  11. ```
  12. `PauseStream` will buffer whenever paused.
  13. it will buffer when yau have called `pause` manually.
  14. but also when it's downstream `dest.write()===false`.
  15. it will attempt to drain the buffer when you call resume
  16. or the downstream emits `'drain'`
  17. `PauseStream` is tested using [stream-spec](https://github.com/dominictarr/stream-spec)
  18. and [stream-tester](https://github.com/dominictarr/stream-tester)
  19. This is now the default case of
  20. [through](https://github.com/dominictarr/through)
  21. https://github.com/dominictarr/pause-stream/commit/4a6fe3dc2c11091b1efbfde912e0473719ed9cc0