JSPM

Found 79 results for cb

extract-opts

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

  • v5.9.0
  • 79.69
  • Published

reduce-object

Reduces an object to a value that is the accumulated result of running each property in the object through a callback. Executes the callback function once for each own enumerable property in the object, receiving four arguments: the initial value (or valu

  • v0.1.3
  • 73.43
  • Published

deferential

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

  • v1.0.0
  • 67.56
  • Published

cb2promise

Converts whatever standard NodeJS callback function into ES6 standard promise.

  • v1.1.1
  • 67.22
  • Published

cbify

Wraps synchronous functions with a callback-style API

  • v1.0.0
  • 65.65
  • Published

@ronomon/queue

Process thousands of asynchronous or synchronous jobs, concurrently or sequentially, safely and efficiently, without creating thousands of closures.

  • v3.0.1
  • 64.15
  • Published

cpsenize

Wraps synchronous functions with a cps (callback passing style) function

  • v2.0.0
  • 56.14
  • Published

makepromise

Make a Promise from a function with a callback and preserve its error stack.

  • v3.2.0
  • 55.11
  • Published

@medipass/pify

Promisify a callback-style function

  • v3.0.0-3
  • 51.93
  • Published

common-callback-names

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

  • v2.0.1
  • 46.53
  • Published

try-catch-callback

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][].

  • v2.0.2
  • 44.57
  • Published

mukla

Small, parallel and fast test framework with suppport for async/await, promises, callbacks, streams and observables. Targets and works at node.js v0.10 and above.

  • v0.4.9
  • 40.44
  • Published

try-catch-core

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.

  • v2.0.3
  • 40.33
  • Published

always-done

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

  • v1.1.0
  • 37.45
  • Published

handle-errors

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

  • v1.0.0
  • 36.32
  • Published

online-branch-exist

Check that given branch/tag/release exist in github repo, using `user/repo#branch` pattern.

  • v2.0.2
  • 34.15
  • Published

async-exec-cmd

Simple, fast, flexible and cross-platform async executing commands (with node-cross-spawn).

  • v2.0.2
  • 30.95
  • Published

exec-cmd

Flexible and cross-platform executing commands. Hybrid, Async and Promise API.

  • v2.0.1
  • 30.74
  • Published

hybridify

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

  • v2.0.0
  • 29.95
  • Published

employer-style-base

A stack-agnostic Sass library providing basic components and typography intended for the Employer experience

  • v4.3.0
  • 29.02
  • Published

util-callbackify

A backport of `util.callbackify` for Node.js 6.0 and up.

  • v1.0.0
  • 25.68
  • Published

notchpay.js

Notch Pay Software Development Kit for Javascript

  • v1.0.1
  • 21.16
  • Published

letta

Promisify sync, async or generator function, using [relike][]. Kind of promisify, but lower level. Full compatibility with [co][]4 and passing 100% of its tests.

  • v0.5.2
  • 20.36
  • Published

employer-style-grid

A stack-agnostic SASS library providing a framework-agnostic, Neat-based grid system intended for the Employer experience

  • v2.0.0
  • 20.06
  • Published

minibase

Minimalist alternative for Base. Build complex APIs with small units called plugins. Works well with most of the already existing [base][] plugins.

  • v1.0.1
  • 19.56
  • Published

uuid-cbr

Js библиотека для генирации uuid по требованию ЦБ

  • v0.0.3
  • 19.28
  • Published

await-cb

An unintrusive, modern, and extremely simple callback-to-promise wrapper that makes no assumptions.

  • v1.1.2
  • 18.15
  • Published

hask

Dispatcher architecture for webapplications

  • v1.7.0
  • 17.20
  • Published

handle-callback

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

  • v2.0.0
  • 17.04
  • Published

is-callback-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.

  • v1.0.1
  • 17.01
  • Published

then-callback

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

  • v1.0.3
  • 16.28
  • Published

nify

Nodeify a promise-returning function

  • v2.0.0
  • 15.51
  • Published

create-callback

Create callback api from synchronous function. Same as `make-callback`, but won't handle generators and if async function is given returns it.

  • v1.0.1
  • 14.74
  • Published

benz

Compose your control flow with absolute elegance. Support async/await, callbacks, thunks, generators, promises, observables, child processes and streams. Can power applications that need to have plugins. Useful for creating task, test and bench runners.

  • v0.4.0
  • 14.26
  • Published

vez

Middleware composition at new level. Ultimate alternative to `ware`, `plugins`, `koa-compose` and `composition` packages. Allows you to use callbacks, promises, generators and async/await functions as middlewares.

  • v0.2.0
  • 14.24
  • 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
  • 14.14
  • 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
  • 13.61
  • Published

callback2stream

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

  • v1.0.1
  • 13.59
  • Published

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.59
  • Published

pifi

Immediately invoked [pify](https://github.com/sindresorhus/pify)

  • v1.1.1
  • 13.19
  • Published

relike-all

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

  • v2.2.0
  • 12.05
  • 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.04
  • Published

make-callback

Make synchronous function or generator to support callback api

  • v1.0.1
  • 11.25
  • 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
  • 11.07
  • Published

pify-native

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

  • v4.0.1
  • 10.73
  • Published

cbwrap

small utility that wraps callbacks in native promises (es6)

  • v1.1.1-rc
  • 10.03
  • 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.55
  • Published

pify-proto

Promisify methods on the prototype of an object

  • v0.2.0
  • 8.62
  • Published

@scottnonnenberg/notate

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

  • v1.0.0
  • 8.20
  • Published

obsify

Observableify a callback-style function

  • v1.0.0
  • 7.76
  • Published

find-callback

Finds and returns a node-style callback.

  • v1.2.1
  • 7.32
  • Published

minibase-control-flow

Plugin for [minibase][] and [base][] that adds control flow methods `.serial` and `.parallel` to your application, based on the power of [each-promise][] lib for dealing with async flow.

  • v1.0.0
  • 7.19
  • Published

asyncpify

Convert a callback-style function to an AsyncFunction

  • v4.0.3
  • 7.19
  • Published

@superjs/cb

awaitable callback

  • v1.0.2
  • 7.07
  • Published

chaotic-cb

introduce chaos to callbacks (inject errors occasionally)

  • v0.0.2
  • 7.07
  • Published

log-cb

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

  • v0.2.1
  • 6.97
  • Published

ercb

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

  • v1.0.0
  • 6.95
  • Published

compromiser

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

  • v1.0.4
  • 6.90
  • 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.80
  • 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.80
  • Published

@icongo/cb

Carbon Icons ===

  • v1.2.0
  • 5.82
  • Published

ifrun

if a function is defined run it with given args

  • v1.0.2
  • 5.80
  • Published

promise.cb

transform an async function to callback style

  • v0.0.2
  • 4.38
  • Published

@alexcabezas0/circuit-breaker

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

  • v1.0.0
  • 2.79
  • 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
  • 2.66
  • Published

cb-async

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

  • v1.0.2
  • 2.56
  • 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

comboparabotdiscord

Apenas uma simples package para fazer seu bot discord!

    • v0.0.3-snapshot
    • 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