promise-polyfill
reinventing the wheel ES6 Promise
lightweight 4kb!
Installation
$ npm install @isoden/promise-polyfill --save
Usage
import Promise from '@isoden/promise-polyfill';
new Promise((resolve) => {
setTimeout(resolve, 1000);
})
.then(() => {
console.log('after 1000ms');
});
Todo
- [ ] Write test code!
📝 - [ ] Write docs!
📝
Development
$ npm install
$ npm start # watching src files
$ npm test # running test
License
MIT License
http://isoden.mit-license.org
Maintained by isoden