• Stars
    star
    3
  • Rank 3,963,521 (Top 79 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

More Repositories

1

always-done

πŸ† 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
JavaScript
31
star
2

try-catch-core

Asynchronous and sync tryCatch in one place - works almost like `async-done`, used in `always-done`. The callback is securely wrapped with a `dezalgo` and `once`.
JavaScript
10
star
3

hybridify

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

always-callback

πŸ’‹ Create callback api for given sync function. Guarantee that given function (sync or async, no matter) will always have callback api.
JavaScript
5
star
5

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`.
JavaScript
5
star
6

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.
JavaScript
5
star
7

make-callback

Make synchronous function or generator to support callback api
JavaScript
4
star
8

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.
JavaScript
4
star
9

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.
JavaScript
4
star
10

letta

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

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.
JavaScript
3
star
12

callback2stream

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

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.
JavaScript
3
star
14

value2stream

Transform any value to stream. Create stream from any value - string, array, buffer, number, promise or even Error object.
JavaScript
3
star
15

handle-callback

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

redolent

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

relike-all

Promisify all functions in an object, using `relike`.
JavaScript
3
star
18

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.
JavaScript
3
star
19

hybridify-all

Hybridifies all the selected functions in an object.
JavaScript
2
star
20

promise2thunk

Convert (transform) promise to thunk, just like was in co@3
JavaScript
2
star
21

thunk2promise

Transform or convert thunk to Bluebird Promise, just like in co@4
JavaScript
2
star
22

relike

#asyncfirst ⭐ Simple promisify async or sync function with sane defaults. Lower level than `promisify` thing.
JavaScript
2
star
23

handle-observable

Handle completion of an observable, using observable's `.subscribe` method.
JavaScript
2
star
24

handle-errors

Handling/creating hybrid errors, if callback pass to it else throw
JavaScript
2
star
25

voala

WIP. Ultimate, feature-rich, minimal and stable testing framework for the future. ES2015-ready.
JavaScript
2
star
26

exec-cmd

Flexible and cross-platform executing commands. Hybrid, Async and Promise API.
JavaScript
2
star
27

merz

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

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.
JavaScript
2
star
29

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.
JavaScript
2
star
30

letta-callback

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

meta

Logo license and `hybridables` organization discussion.
1
star
32

then-got

Promisified `simple-get`.
JavaScript
1
star
33

handle-stream

Handle completion of a stream, using `on-stream-end` and `stream-exhaust`.
JavaScript
1
star
34

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.
JavaScript
1
star
35

then-callback

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

is-hybrid

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

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 now and then.
JavaScript
1
star
38

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.
JavaScript
1
star
39

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.
JavaScript
1
star