2.0.0 • Published 8 years ago

sb-stream-promise v2.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

Stream-Promise

Stream-Promise is a Node.js stream to Promise conversion module.

Installation

npm install --save sb-stream-promise

API

export default function createdefaultPromise(stream: Stream, bytesLimit: ?number)

Example

const FS = require('fs')
const createStreamPromise = require('sb-stream-promise')

createStreamPromise(FS.createReadStream(`/etc/passwd`))
  .then(function(contents) {
    console.log(contents)
  })
  .catch(function(error) {
    console.error('unable to read file', error)
  })

License

This project is licensed under the terms of MIT License. See the LICENSE file for more info.

2.0.0

8 years ago

1.0.0

8 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago