Search results
79 packages found
Wrap a promise to allow passing callback to `.then` of given promise, also works as normal `.then`
Promisify a callback-style function
Returns true if function is a callback. Checks its name is one of [common-callback-names][] - callback, cb, cb_, callback_, next, done, they can be customized, these are default.
Transform sync, async or generator function to Stream. Correctly handle errors and optional arguments.
- args
- arguments
- async
- asynchronous
- callback
- callback-stream
- cb
- correct
- create
- fn
- function
- generator
- generators
- letta
- View more
Dispatcher architecture for webapplications
Create promise from sync, async, string, number, array and so on. Handle completion (results) and errors gracefully! Built on top of `relike`, used by `redolent` to build robust (hybrid) APIs.
- all
- anything
- api
- array
- async
- bluebird
- callback
- cb
- complete
- completion
- convert
- easy
- everywhere
- gracefully
- View more
A backport of `util.callbackify` for Node.js 6.0 and up.
- async
- callback
- callbackify
- cb
- convert
- depromisify
- dethenify
- errback
- nodeback
- nodeify
- promise-to-callback
- promise
- promisify
- then
- View more
Observableify a callback-style function
Immediately invoked [pify](https://github.com/sindresorhus/pify)
Nodeify a promise-returning function
transform an async function to callback style
Acts like `co@4` and also is drop-in replacement for it (pass 100% of the tests). Built on top of `merz`, actually thanks to `always-done`. But accept everything, not only generators - sync functions, async functions, callbacks and more. Flow-control for
- async
- asynchronous
- callback
- cb
- child
- child-process
- co
- coify
- compat
- compatibility
- control
- control-flow
- done
- drop
- View more
Promisify, basically, everything. Generator function, callback-style or synchronous function; sync function that returns child process, stream or observable; directly passed promise, stream or child process.
- always
- api
- async
- asynchronous
- bluebird
- callback
- cb
- child
- child-process
- control
- convert
- create
- flow
- function
- View more
awaitable callback
Wraps synchronous functions with a callback-style API
Extra err.stack entries for debuggability. Better than your plain 'if (err) { return cb(err) }'
Convert a callback-style function to an AsyncFunction
Super light and simple to use global application state and storage, subscribe/unsubscribe for data change etc..
if a function is defined run it with given args
Extends `letta` to accept and handles more than functions only. Handles all kind of results from `letta`. Basically, creating promise from everything - strings, arrays, objects, functions, generators, generator functions, promises, streams, child processe