All Projects → bredele → bluff

bredele / bluff

Licence: other
🙏 Promise A+ implementation

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to bluff

Tascalate Concurrent
Implementation of blocking (IO-Bound) cancellable java.util.concurrent.CompletionStage and related extensions to java.util.concurrent.ExecutorService-s
Stars: ✭ 144 (+928.57%)
Mutual labels:  promises, promise
promiviz
Visualize JavaScript Promises on the browser. Visualize the JavaScript Promise APIs and learn. It is a playground to learn about promises faster, ever!
Stars: ✭ 79 (+464.29%)
Mutual labels:  promises, promise
Yaku
A lightweight promise library
Stars: ✭ 276 (+1871.43%)
Mutual labels:  promises, promise
doasync
Promisify functions and objects immutably
Stars: ✭ 27 (+92.86%)
Mutual labels:  promises, promise
Bluebird Api
Bluebird compatible API on top of native promises.
Stars: ✭ 36 (+157.14%)
Mutual labels:  promises, promise
tall
Promise-based, No-dependency URL unshortner (expander) module for Node.js
Stars: ✭ 56 (+300%)
Mutual labels:  promises, promise
Asyncro
⛵️ Beautiful Array utilities for ESnext async/await ~
Stars: ✭ 487 (+3378.57%)
Mutual labels:  promises, promise
redux-reducer-async
Create redux reducers for async behaviors of multiple actions.
Stars: ✭ 14 (+0%)
Mutual labels:  promises, promise
Q
A platform-independent promise library for C++, implementing asynchronous continuations.
Stars: ✭ 179 (+1178.57%)
Mutual labels:  promises, promise
Promise.hpp
C++ asynchronous promises like a Promises/A+
Stars: ✭ 31 (+121.43%)
Mutual labels:  promises, promise
swear
🙏 Flexible promise handling with Javascript
Stars: ✭ 56 (+300%)
Mutual labels:  promises, promise
Vine
Python promises
Stars: ✭ 83 (+492.86%)
Mutual labels:  promises, promise
combine-promises
Like Promise.all(array) but with an object instead of an array.
Stars: ✭ 181 (+1192.86%)
Mutual labels:  promises, promise
Promise
Promise / Future library for Go
Stars: ✭ 149 (+964.29%)
Mutual labels:  promises, promise
ProtoPromise
Robust and efficient library for management of asynchronous operations in C#/.Net.
Stars: ✭ 20 (+42.86%)
Mutual labels:  promises, promise
Promise Fun
Promise packages, patterns, chat, and tutorials
Stars: ✭ 3,779 (+26892.86%)
Mutual labels:  promises, promise
alls
Just another library with the sole purpose of waiting till all promises to complete. Nothing more, Nothing less.
Stars: ✭ 13 (-7.14%)
Mutual labels:  promises, promise
Fetch
Asynchronous HTTP client with promises.
Stars: ✭ 29 (+107.14%)
Mutual labels:  promises, promise
P Map
Map over promises concurrently
Stars: ✭ 639 (+4464.29%)
Mutual labels:  promises, promise
Breeze
Javascript async flow control manager
Stars: ✭ 38 (+171.43%)
Mutual labels:  promises, promise

Bluff

Build Status NPM Downloads pledge

Transform everything into a promise.

  • Standardization: Bluff helps reducing difference of implementation in your code according you are dealing with synchronous or asynchronous computations. Any value passed to Bluff is transformed into a promise. Even streams!
  • Combination: Bluff resolves when all of the promises in the iterable argument have resolved and when all or some of the the iterable argument contains no promises.

Learn more or Try it online!

Usage

var promise = require('bluff')

function readJSON(filename){
  return promise(function (resolve, reject){
    readFile(filename, 'utf8').done(function (res){
      try {
        resolve(JSON.parse(res));
      } catch (ex) {
        reject(ex);
      }
    }, reject);
  });
}

// combination example

promise(
  readJSON('package.json'),
  'and dome other text'
).then(data => {
  // do something
})

Check out examples and tests for more information.

Installation

npm install bluff --save

NPM

Question

For questions and feedback please use our twitter account. For support, bug reports and or feature requests please make sure to read our community guideline and use the issue list of this repo and make sure it's not present yet in our reporting checklist.

Contribution

Bluff is an open source project and would not exist without its community. If you want to participate please make sure to read our guideline before making a pull request. If you have any bluff-related project, component or other let everyone know in our wiki.

License

The MIT License (MIT)

Copyright (c) 2016 Olivier Wietrich

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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