All Projects β†’ await-of β†’ of

await-of / of

Licence: MIT license
🍬 Promise wrapper with sugar 🍬

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to of

Await Of
await wrapper for easier errors handling without try-catch
Stars: ✭ 240 (+1746.15%)
Mutual labels:  wrapper, promise, error-handling, await, async-await
Await Handler
Basic wrapper for await that allows handling of errors without try/catch blocks
Stars: ✭ 13 (+0%)
Mutual labels:  promise, error-handling, await, async-await
retryx
Promise-based retry workflow library.
Stars: ✭ 21 (+61.54%)
Mutual labels:  promise, error-handling, async-await
try-to-catch
functional try-catch wrapper for promises
Stars: ✭ 30 (+130.77%)
Mutual labels:  promise, await, try-catch
auto-async-wrap
automatic async middleware wrapper for expressjs errorhandler.
Stars: ✭ 21 (+61.54%)
Mutual labels:  wrapper, error-handling, async-await
P Iteration
Utilities that make array iteration easy when using async/await or Promises
Stars: ✭ 337 (+2492.31%)
Mutual labels:  promise, await, async-await
P Map
Map over promises concurrently
Stars: ✭ 639 (+4815.38%)
Mutual labels:  promise, await, async-await
Shift
Light-weight EventKit wrapper.
Stars: ✭ 31 (+138.46%)
Mutual labels:  wrapper, async-await
popyt
A very easy to use Youtube Data v3 API wrapper.
Stars: ✭ 42 (+223.08%)
Mutual labels:  wrapper, promise
Ws Wrapper
Lightweight WebSocket lib with socket.io-like event handling, requests, and channels
Stars: ✭ 58 (+346.15%)
Mutual labels:  wrapper, promise
WebsocketPromisify
Makes websocket's API just like REST with Promise-like API, with native Promises.
Stars: ✭ 18 (+38.46%)
Mutual labels:  promise, await
do
Simplest way to manage asynchronicity
Stars: ✭ 33 (+153.85%)
Mutual labels:  promise, await
ProtoPromise
Robust and efficient library for management of asynchronous operations in C#/.Net.
Stars: ✭ 20 (+53.85%)
Mutual labels:  promise, await
routeros-client
Abstraction layer over the node-routeros API
Stars: ✭ 63 (+384.62%)
Mutual labels:  wrapper, promise
Kitsu
🦊 A simple, lightweight & framework agnostic JSON:API client
Stars: ✭ 166 (+1176.92%)
Mutual labels:  promise, async-await
Foy
A simple, light-weight and modern task runner for general purpose.
Stars: ✭ 157 (+1107.69%)
Mutual labels:  promise, async-await
Unityfx.async
Asynchronous operations (promises) for Unity3d.
Stars: ✭ 143 (+1000%)
Mutual labels:  promise, async-await
relaks
Asynchrounous React component
Stars: ✭ 49 (+276.92%)
Mutual labels:  promise, await
eslint-config-welly
😎 βš™οΈ ESLint configuration for React projects that I do. Feel free to use this!
Stars: ✭ 21 (+61.54%)
Mutual labels:  promise, async-await
Promise.allSettled
ES Proposal spec-compliant shim for Promise.allSettled
Stars: ✭ 93 (+615.38%)
Mutual labels:  promise, await

🍑🍭🍬 O F 🍑🍭🍬

https://of.js.org/

Syntactic sugar for asynchronous functions, promises, generators and synchronous functions.

Deno version of module - πŸ¬πŸ¦• DenOf πŸ¬πŸ¦•.

NPM Version NPM Downloads GitHub Stars

TypeScript Typings Travis CI

Maintainability Rating LGTM Codacy Badge Snyk

OF

πŸ’¬ Usage

import { ofAnyCase } from "@await-of/of";
const promise = () => new Promise((resolve, _reject) => {
  resolve({ data: true });
});
const config = {
  defaults: "🀷 Default value in case of error",
  error: new Error("πŸ’€ Custom error, replaces thrown error"),
  retries: 3, // πŸ” Third time's a charm
  timeout: 1000, // ⏱️ Delay before timeout error
};
// no error thrown
const [result, error] = await ofAnyCase(promise(), config);
console.log(result); // { data: true }
console.warn(error); // no error thrown, so it's undefined

πŸ—ΊοΈ Discover more

My other projects

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].