pull-promise
Pull the value from a promise using pull-streams
Installation
$ npm install pull-promise
API
.source(Promise)
Also available as
require('pull-promise/source')
Creates a source stream with the resolved promise value.
const toPull = // or -> const source = require('pull-promise/source') // -> 5
.through(Promise)
Also available as
require('pull-promise/through')
Creates a through stream with the resolved promise value as output.
const toPull = const delay = // -> date after 500ms
Run tests
$ npm test