[go: up one dir, main page]

Skip to content
@hybridables

JavaScript Hybrids

#asyncfirst #alwaysasync #hybridify. All hybrids and related things.

Pinned Loading

  1. hybridify hybridify Public

    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

  2. always-done always-done Public

    🏆 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 32 2

  3. try-catch-callback try-catch-callback Public

    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

  4. value2stream value2stream Public

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

    JavaScript 3

  5. callback2stream callback2stream Public

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

    JavaScript 3

  6. promise2stream promise2stream Public

    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

Repositories

Showing 10 of 40 repositories
  • always-done Public

    🏆 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

    hybridables/always-done’s past year of commit activity
    JavaScript 32 MIT 2 3 9 Updated Jan 11, 2023
  • try-catch-callback Public

    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`.

    hybridables/try-catch-callback’s past year of commit activity
    JavaScript 5 MIT 0 0 14 Updated Jun 22, 2022
  • try-catch-core Public

    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`.

    hybridables/try-catch-core’s past year of commit activity
    JavaScript 10 MIT 1 0 14 Updated Jun 22, 2022
  • always-promise Public

    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.

    hybridables/always-promise’s past year of commit activity
    JavaScript 4 MIT 1 1 0 Updated Jul 24, 2017
  • letta Public

    #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.

    hybridables/letta’s past year of commit activity
    JavaScript 4 MIT 0 3 0 Updated Jul 24, 2017
  • hybridify Public

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

    hybridables/hybridify’s past year of commit activity
    JavaScript 8 MIT 0 2 0 Updated Jul 12, 2017
  • relike-all Public

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

    hybridables/relike-all’s past year of commit activity
    JavaScript 3 MIT 0 0 0 Updated Jun 21, 2017
  • handle-errors Public

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

    hybridables/handle-errors’s past year of commit activity
    JavaScript 2 MIT 0 0 0 Updated May 24, 2017
  • redolent Public

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

    hybridables/redolent’s past year of commit activity
    JavaScript 3 MIT 0 0 0 Updated May 5, 2017
  • then-callback Public

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

    hybridables/then-callback’s past year of commit activity
    JavaScript 1 MIT 0 0 0 Updated Apr 5, 2017

Top languages

Loading…

Most used topics

Loading…