Skip to content

A collection of small and useful enhancements to ES6 native promises without reinventing the wheel.

License

Notifications You must be signed in to change notification settings

lmammino/promiseKit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

promiseKit

A collection of small and useful enhancements to ES6 native promises without reinventing the wheel.

So What?

In the last decade or so the javascript comunity came up with extensive Promise libraries and implementations way before they were standardised and finally included in the interpretes. Bluebird, When, Q are some examples. Native promises have finally landed in modern browesers and node but they're kind of quite minimal (someone would even say "crippled"). ES6 promises are a good start: a weldefined base implementation and common ground.

The target

I don't know you but since I can use the native Promises, and I'm usually not happy to add huge dependeices to my projects for just a little bit of sugar, I'm moving away form those libs but they for sure carry some very useful bits. This repos' aim is to group all those little useful icing-functions we're use to have and move them on ES6 promises in a light and independent way. independent such as "free form dependencies": it would be nice to be able to include a conveniente 20-loc function in my project without needing 5MBs of dependencies ;)

How to contribute:

  • create a new directory with the name of the function
  • put and index.js file with the function implementation
  • add an example.js file to showcase how to use it/what it does
  • add some tests
  • Update the doc

List:

  • Props: Kind of like all() but it receives and return an object (dictionatry) instead of an array.

Future:

Yes at some point would be nice to brew a modular library out of this :)

About

A collection of small and useful enhancements to ES6 native promises without reinventing the wheel.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%