JSPM

Found 79 results for cb

async-base-iterator

Basic iterator for [async][] library that handles async and synchronous functions, also emits `beforeEach`, `afterEach` and `error` events. Using [async-simple-iterator][] and used in [async-control][].

  • v0.4.0
  • 13.63
  • Published

callback2stream

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

  • v1.0.1
  • 13.63
  • Published

letta-value

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

  • v1.0.0
  • 13.02
  • Published

eventcb

One trigger can invoke all the subscribed callbacks events, Can create any number of triggers and each trigger can have any number of event subscribers

  • v1.0.12
  • 13.00
  • Published

always-callback

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.

  • v1.0.0
  • 12.45
  • Published

voa

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

  • v0.1.1
  • 12.17
  • Published

relike-all

Promisify all function in an object, using [relike][].

  • v2.2.0
  • 11.07
  • Published

to-callback

Converts result-first callbacks to classic (node.js-style) error-first callbacks with 3 lines of code. Useful when you want to promisify result-first APIs (like emitter.on). Inspired by [rfpify][] and probably used in it.

  • v1.0.1
  • 10.98
  • Published

make-callback

Make synchronous function or generator to support callback api

  • v1.0.1
  • 10.67
  • Published

cbwrap

small utility that wraps callbacks in native promises (es6)

  • v1.1.1-rc
  • 10.01
  • Published

always-promise

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.

  • v1.1.1
  • 9.58
  • Published

compromiser

A Promise that's also a callback. Helpful for adapting callback APIs and event emitters for async/await code.

  • v1.0.4
  • 9.42
  • Published

pify-native

Promisify a callback-style function with native util.promisify support

  • v4.0.1
  • 9.22
  • Published

ercb

For those who don't like the node (er, result) convention

  • v1.0.0
  • 8.99
  • Published

asyncpify

Convert a callback-style function to an AsyncFunction

  • v4.0.3
  • 8.95
  • Published

pify-proto

Promisify methods on the prototype of an object

  • v0.2.0
  • 8.54
  • Published

ifrun

if a function is defined run it with given args

  • v1.0.2
  • 8.12
  • Published

@scottnonnenberg/notate

Extra err.stack entries for debuggability. Better than your plain 'if (err) { return cb(err) }'

  • v1.0.0
  • 8.09
  • Published

find-callback

Finds and returns a node-style callback.

  • v1.2.1
  • 7.31
  • Published

chaotic-cb

introduce chaos to callbacks (inject errors occasionally)

  • v0.0.2
  • 7.14
  • Published

log-cb

A better looking method to format errors and data from a callback.

  • v0.2.1
  • 7.00
  • Published

filter-web-colors

(wip) Filter possible web colors (by name or hex or rgb(a) or hsl(a) value) with glob patterns or callback which returns true

  • v0.0.0-1
  • 6.79
  • Published

relike-value

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.

  • v1.0.0
  • 6.79
  • Published

obsify

Observableify a callback-style function

  • v1.0.0
  • 6.79
  • Published

cb-async

Creates an async/await/promise style callback handler with a single function call.

  • v1.0.2
  • 5.94
  • Published

@icongo/cb

Carbon Icons ===

  • v1.2.0
  • 5.83
  • Published

comboparabotdiscord

Apenas uma simples package para fazer seu bot discord!

    • v0.0.3-snapshot
    • 5.74
    • Published

    @alexcabezas0/circuit-breaker

    A simple implementation of a CircuitBreaker to ensure a healthy status of your application

    • v1.0.0
    • 4.73
    • Published

    promise.cb

    transform an async function to callback style

    • v0.0.2
    • 4.49
    • Published

    rubys

    Super light and simple to use global application state and storage, subscribe/unsubscribe for data change etc..

    • v1.0.6
    • 0.00
    • Published

    cb-search-bar

    Search bar powered by Class Bazar for showcasing their courses to the partners.

    • v1.0.2
    • 0.00
    • Published