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.

43 lines
1.2 KiB

  1. # unpipe
  2. [![NPM Version][npm-image]][npm-url]
  3. [![NPM Downloads][downloads-image]][downloads-url]
  4. [![Node.js Version][node-image]][node-url]
  5. [![Build Status][travis-image]][travis-url]
  6. [![Test Coverage][coveralls-image]][coveralls-url]
  7. Unpipe a stream from all destinations.
  8. ## Installation
  9. ```sh
  10. $ npm install unpipe
  11. ```
  12. ## API
  13. ```js
  14. var unpipe = require('unpipe')
  15. ```
  16. ### unpipe(stream)
  17. Unpipes all destinations from a given stream. With stream 2+, this is
  18. equivalent to `stream.unpipe()`. When used with streams 1 style streams
  19. (typically Node.js 0.8 and below), this module attempts to undo the
  20. actions done in `stream.pipe(dest)`.
  21. ## License
  22. [MIT](LICENSE)
  23. [npm-image]: https://img.shields.io/npm/v/unpipe.svg
  24. [npm-url]: https://npmjs.org/package/unpipe
  25. [node-image]: https://img.shields.io/node/v/unpipe.svg
  26. [node-url]: http://nodejs.org/download/
  27. [travis-image]: https://img.shields.io/travis/stream-utils/unpipe.svg
  28. [travis-url]: https://travis-ci.org/stream-utils/unpipe
  29. [coveralls-image]: https://img.shields.io/coveralls/stream-utils/unpipe.svg
  30. [coveralls-url]: https://coveralls.io/r/stream-utils/unpipe?branch=master
  31. [downloads-image]: https://img.shields.io/npm/dm/unpipe.svg
  32. [downloads-url]: https://npmjs.org/package/unpipe