Aigle

🦅 Aigle is an ideal promise library which is faster and more efficient than other libraries. It is a production-ready library that implements the Promise A+ standard.
Alternatives To Aigle
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Bluebird20,222649,66329,9612 months ago223November 28, 2019120mitJavaScript
:bird: :zap: Bluebird is a full featured promise library with unmatched performance.
Promise Fun3,494
2 years agocc0-1.0
Promise packages, patterns, chat, and tutorials
Pg Promise3,2944,8114537 days ago592August 27, 2022mitJavaScript
PostgreSQL interface for Node.js
Hydra1,941
9a year ago21October 08, 202010mitSwift
⚡️ Lightweight full-featured Promises, Async & Await Library in Swift
Jdeferred1,463133162 years ago16June 03, 201733apache-2.0Java
Java Deferred/Promise library similar to JQuery.
Awaity.js813894 years ago24April 04, 20182mitJavaScript
A functional, lightweight alternative to bluebird.js, built with async / await in mind.
Lie722
3 years ago3mitJavaScript
A basic but performant promise implementation.
Promises Tests68320,1983962 years ago18June 28, 201623otherJavaScript
Compliances tests for Promises/A+
Aigle3291,53641a year ago65April 14, 202016mitJavaScript
🦅 Aigle is an ideal promise library which is faster and more efficient than other libraries. It is a production-ready library that implements the Promise A+ standard.
Promise2791225 days ago1October 13, 20182mitGo
Promise / Future library for Go
Alternatives To Aigle
Select To Compare


Alternative Project Comparisons
Readme

aigle

npm CircleCI Status Coverage Status

Aigle is an ideal promise library which is faster and more efficient than other libraries. On top of being an impressive benchmark exercise, it is a production-ready library that implements the Promise A+ standard.

Also it has a lot of async style functions, you can start using Promise easily.

Usage

Node.js

npm install --save aigle
const Aigle = require('aigle');
const each = require('aigle/each');

TypeScript

import Aigle from 'aigle';
import { Aigle } from 'aigle';

Async/Await

global.Promise = Aigle;
async function getUsers(ids) {
  const users = await Promise.map(ids, getUser);
  const targets = await Promise.filter(users, filterUser);
  return targets;
}

async function getUsers(ids) {
  return await Promise.map(ids, getUser).filter(filterUser);
}

Convert synchronous functions to asynchronous functions

Aigle.mixin(require('lodash'));

return Aigle.map([1.1, 1.4, 2.2], (n) => Aigle.delay(10, n * 2)) // [2.2, 2.8, 4.4]
  .uniqBy((n) => Aigle.delay(10, Math.floor(n))) // [2.2, 4.4]
  .sum() // 6.6
  .times() // [0, 1, 2, 3, 4, 5];
  .then((value) => console.log(value)); // [0, 1, 2, 3, 4, 5];

browser

Recommend to use webpack, browserify, Rollup or any bundling tool.

or prebuilt scripts from here.

This will expose to global as window.Promise.

<script src="dist/aigle.min.js"></script>
window.Promise;

Functions

Core

prototype functions

class functions

Collections

prototype functions

class functions

Control flow

prototype functions

class functions

Utils

prototype functions

class functions

Debug

class functions

Popular Promise Projects
Popular Promise Library Projects
Popular Control Flow Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Javascript
Promise
Promise Library