Giter Club home page Giter Club logo

JavaScript Hybrids's Projects

always-callback icon always-callback

:kiss: Create callback api for given sync function. Guarantee that given function (sync or async, no matter) will always have callback api.

always-done icon always-done

:trophy: Handle completion and errors with elegance! Support for async/await, promises, callbacks, streams and observables. A drop-in replacement for async-done - pass 100% of its tests plus more

always-generator icon always-generator

Generatorify, basically, everything. You can create generator function from callback-style or synchronous function; sync function that returns child process, stream or observable; directly passed promise, stream or child process.

always-promise icon 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.

always-stream icon always-stream

Create stream from any value - function, array, string, buffer, promise, number, object and etc. Always returns a function that returns Transform Stream, using through2.

always-thunk icon always-thunk

Thunkify, 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.

benz icon 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. Built with backward compatibility and future stability in mind.

callback2stream icon callback2stream

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

coone icon coone

Acts like `co@3` and also is drop-in replacement for it. 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 now and then.

create-callback icon 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.

exec-cmd icon exec-cmd

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

handle-arguments icon handle-arguments

Get separately non-callback arguments in `.arguments` and the last argument if it `is-callback-function` in `.callback` property. It also works like `sliced`, but returns object with `.arguments` and `.callback` properties.

handle-callback icon handle-callback

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

handle-errors icon handle-errors

Handling/creating hybrid errors, if callback pass to it else throw

handle-observable icon handle-observable

Handle completion of an observable, using observable's `.subscribe` method.

handle-stream icon handle-stream

Handle completion of a stream, using `on-stream-end` and `stream-exhaust`.

hybridify icon hybridify

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

is-hybrid icon is-hybrid

Check whether an object looks like Hybrid which is promises-a+ promise and callback api

letta icon letta

#asyncfirst :cat2: Promisify sync, async or generator function, using relike. Kind of promisify, but lower level. Full compatibility with co4 and passing 100% of its tests.

letta-callback icon letta-callback

Just `letta` with good old callback-style api. Accepts sync, async, generators and generator functions.

letta-value icon letta-value

Extends `letta` to accept and handles more than functions only. Handles all kind of results from `letta`/promise. Basically, creating promise from everything - strings, arrays, objects, functions, generators, generator functions, promises, streams, child processes, observables, maps, symbols, dates and etc.

make-callback icon make-callback

Make synchronous function or generator to support callback api

merz icon merz

Wrapper to handle completion and errors of sync and async functions, promises, generators, streams, observables and child processes.

meta icon meta

Logo license and `hybridables` organization discussion.

promise2stream icon promise2stream

Transform ES2015 Promise to Stream - specifically, Transform Stream using `through2`. Works in object mode by default, but you can pass options directly to the `through2` package.

promise2thunk icon promise2thunk

Convert (transform) promise to thunk, just like was in co@3

redolent icon redolent

Simple promisify with sane defaults, works on node 0.10 if you provide custom Promise through options

relike icon relike

#asyncfirst :star: Simple promisify async or sync function with sane defaults. Lower level than `promisify` thing.

relike-all icon relike-all

Promisify all functions in an object, using `relike`.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.