64 packages found

M
Q
P

Description

Promisify a callback-style function

Keywords

Publisher

published 4.0.12 months ago
M
Q
P

Description

Extract the options and callback from a function's arguments easily

Keywords

Publisher

published 3.3.13 years ago
M
Q
P

Description

Converts whatever standard NodeJS callback function into ES6 standard promise.

Keywords

Publisher

published 1.1.02 years ago
M
Q
P

Description

List of common callback names - callback, cb, callback_, next, done.

Keywords

Publisher

published 2.0.12 years ago
M
Q
P

Description

es6 Native Promise Defer that helps build promise/callback dual APIS

Keywords

Publisher

published 1.0.03 years ago
M
Q
P

Description

try/catch block with a callback, used in [try-catch-core][]. Use it when you don't care about asyncness so much and don't want guarantees. If you care use [try-catch-core][].

Keywords

Publisher

published 2.0.22 years ago
M
Q
P

Description

Wrap a promise to allow passing callback to `.then` of given promise, also works as normal `.then`

Keywords

Publisher

published 1.0.33 years ago
M
Q
P

Description

Is function really asynchronous function? Trying to guess that based on check if [common-callback-names][] exists as function arguments names or you can pass your custom.

Keywords

Publisher

published 1.2.32 years ago
M
Q
P
M
Q
P

Description

Handle completion and errors with elegance! Support for streams, callbacks, promises, child processes, async/await and sync functions. A drop-in replacement for [async-done][] - pass 100% of its tests plus more

Keywords

Publisher

published 1.1.02 years ago
M
Q
P

Description

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.

Keywords

Publisher

published 1.0.13 years ago
M
Q
P

Description

Handling/creating hybrid errors. Hybrid middleware between callbacks and throws. Helpful util for modules that have hybrid APIs and want when they use promises, directly to throw the errors; when use callbacks to pass errors to first argument of this call

Keywords

Publisher

published 1.0.04 years ago
M
Q
P

Description

Low-level package to handle completion and errors of sync or asynchronous functions, using [once][] and [dezalgo][] libs. Useful for and used in higher-level libs such as [always-done][] to handle completion of anything.

Keywords

Publisher

published 2.0.32 years ago
M
Q
P

Description

Hybridify. Hybrids. Create sync or async function to support both promise and callback-style APIs in same time. Using the power of [relike][].

Keywords

Publisher

published 2.0.03 years ago
M
Q
P

Description

Create callback api for given sync function. Guarantee that given function (sync or async, no matter) will always have callback api and will handle errors correctly.

Keywords

Publisher

published 1.0.04 years ago
M
Q
P

Description

Transform sync, async or generator function to Stream. Correctly handle errors and optional arguments.

Keywords

Publisher

published 1.0.13 years ago
M
Q
P
M
Q
P

Description

Observableify a callback-style function

Keywords

Publisher

published 1.0.03 years ago
M
Q
P

Description

Make synchronous function or generator to support callback api

Keywords

Publisher

published 1.0.13 years ago
M
Q
P

Description

Make promise to have support for callback api, it returns promise in that same time.

Keywords

Publisher

published 2.0.04 years ago