Package Exports
- pull-stream-from-promise
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 (pull-stream-from-promise) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
pull-stream-from-promise
Converts a promise to a pull-stream
npm install --save pull-stream-from-promise
Usage
var pull = require('pull-stream')
var fromPromise = require('pull-stream-from-promise')
var source = fromPromise(Promise.resolve(42))
pull(
source,
pull.drain(x => {
console.log(x) // 42
})
)