{"maintainers":[{"name":"lahmatiy","email":"rdvornov@gmail.com"}],"keywords":["es6","es2015","polyfill","promise","promises"],"dist-tags":{"latest":"1.2.0"},"author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com"},"description":"Polyfill for ES6 Promise","readme":"[![NPM version](https://img.shields.io/npm/v/es6-promise-polyfill.svg)](https://www.npmjs.com/package/es6-promise-polyfill)\n[![Build Status](https://travis-ci.org/lahmatiy/es6-promise-polyfill.svg?branch=master)](https://travis-ci.org/lahmatiy/es6-promise-polyfill)\n\n# ES6 Promise polyfill\n\nThis is a polyfill of [ES6 Promise](https://github.com/domenic/promises-unwrapping). The implementation based on [Jake Archibald implementation](https://github.com/jakearchibald/es6-promise) a subset of [rsvp.js](https://github.com/tildeio/rsvp.js). If you're wanting extra features and more debugging options, check out the [full library](https://github.com/tildeio/rsvp.js).\n\nFor API details and how to use promises, see the <a href=\"http://www.html5rocks.com/en/tutorials/es6/promises/\">JavaScript Promises HTML5Rocks article</a>.\n\n## Notes\n\nThe main target: implementation should be conformance with browser's implementations and to be minimal as possible in size. So it's strictly polyfill of ES6 Promise specification and nothing more.\n\nIt passes both [Promises/A+ test suite](https://github.com/promises-aplus/promises-tests) and [rsvp.js test suite](https://github.com/jakearchibald/es6-promise/tree/master/test). And as small as 2,6KB min (or 1KB min+gzip).\n\nThe polyfill uses `setImmediate` if available, or fallback to use `setTimeout`. Use [setImmediate polyfill](https://github.com/YuzuJS/setImmediate) by @YuzuJS to reach better performance.\n\n## How to use\n\n### Browser\n\nTo install:\n\n```sh\nbower install es6-promise-polyfill\n```\n\nTo use:\n\n```htmpl\n<script src=\"bower_components/es6-promise-polyfill/promise.min.js\"></script>\n<script>\n  var promise = new Promise(...);\n</script>\n```\n\n### Node.js\n\nTo install:\n\n```sh\nnpm install es6-promise-polyfill\n```\n\nTo use:\n\n```js\nvar Promise = require('es6-promise-polyfill').Promise;\nvar promise = new Promise(...);\n```\n\n## Usage in IE<9\n\n`catch` is a reserved word in IE<9, meaning `promise.catch(func)` throws a syntax error. To work around this, use a string to access the property:\n\n```js\npromise['catch'](function(err) {\n  // ...\n});\n```\n\nOr use `.then` instead:\n\n```js\npromise.then(undefined, function(err) {\n  // ...\n});\n```\n\n## License\n\nLicensed under the MIT License.\n","repository":{"type":"git","url":"git+https://github.com/lahmatiy/es6-promise-polyfill.git"},"users":{"chemzqm":true,"andersonsantos":true,"rugoals":true,"xueboren":true},"bugs":{"url":"https://github.com/lahmatiy/es6-promise-polyfill/issues"},"license":"MIT","versions":{"1.0.0":{"name":"es6-promise-polyfill","namespace":"Promise","version":"1.0.0","author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com"},"description":"A polyfill for ES6 Promise","main":"promise.js","directories":{"lib":"lib"},"devDependencies":{},"scripts":{},"repository":{"type":"git","url":"git://github.com/lahmatiy/es6-promise-polyfill.git"},"bugs":{"url":"https://github.com/lahmatiy/es6-promise-polyfill/issues"},"keywords":["promises","futures","events"],"homepage":"https://github.com/lahmatiy/es6-promise-polyfill","_id":"es6-promise-polyfill@1.0.0","dist":{"shasum":"940ec9460417e1a5bd04633c611932acce6b5ba5","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/es6-promise-polyfill/-/es6-promise-polyfill-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"lahmatiy","email":"rdvornov@gmail.com"},"maintainers":[{"name":"lahmatiy","email":"rdvornov@gmail.com"}]},"1.0.1":{"name":"es6-promise-polyfill","namespace":"Promise","version":"1.0.1","author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com"},"description":"A polyfill for ES6 Promise","main":"promise.js","directories":{"lib":"lib"},"devDependencies":{},"scripts":{},"repository":{"type":"git","url":"git://github.com/lahmatiy/es6-promise-polyfill.git"},"bugs":{"url":"https://github.com/lahmatiy/es6-promise-polyfill/issues"},"keywords":["promises","futures","events"],"gitHead":"84c066a51aed90e8459d1aa265e2ecfa898e161a","homepage":"https://github.com/lahmatiy/es6-promise-polyfill#readme","_id":"es6-promise-polyfill@1.0.1","_shasum":"fa22b77cd690bd44e66a5d0e1de2849be39825c8","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"lahmatiy","email":"rdvornov@gmail.com"},"maintainers":[{"name":"lahmatiy","email":"rdvornov@gmail.com"}],"dist":{"shasum":"fa22b77cd690bd44e66a5d0e1de2849be39825c8","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/es6-promise-polyfill/-/es6-promise-polyfill-1.0.1.tgz"}},"1.0.2":{"name":"es6-promise-polyfill","namespace":"Promise","version":"1.0.2","author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com"},"description":"A polyfill for ES6 Promise","main":"promise.js","directories":{"lib":"lib"},"devDependencies":{},"scripts":{},"repository":{"type":"git","url":"git://github.com/lahmatiy/es6-promise-polyfill.git"},"bugs":{"url":"https://github.com/lahmatiy/es6-promise-polyfill/issues"},"keywords":["promises","futures","events"],"gitHead":"e6f8c338ccf365cdd393f7953654851cac5f19e0","homepage":"https://github.com/lahmatiy/es6-promise-polyfill#readme","_id":"es6-promise-polyfill@1.0.2","_shasum":"df45231dd40126c91248630214f408fff08eaaf9","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"lahmatiy","email":"rdvornov@gmail.com"},"maintainers":[{"name":"lahmatiy","email":"rdvornov@gmail.com"}],"dist":{"shasum":"df45231dd40126c91248630214f408fff08eaaf9","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/es6-promise-polyfill/-/es6-promise-polyfill-1.0.2.tgz"}},"1.0.3":{"name":"es6-promise-polyfill","description":"Polyfill for ES6 Promise","version":"1.0.3","author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/lahmatiy/es6-promise-polyfill.git"},"bugs":{"url":"https://github.com/lahmatiy/es6-promise-polyfill/issues"},"main":"promise.js","dependencies":{},"devDependencies":{},"scripts":{},"keywords":["es6","es2015","polyfill","promise","promises"],"gitHead":"cadf9cd6f208b537b645fe1130953414d917fb2a","homepage":"https://github.com/lahmatiy/es6-promise-polyfill#readme","_id":"es6-promise-polyfill@1.0.3","_shasum":"11a026677bbf9fd7653fd78bd16daea5611a6492","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"lahmatiy","email":"rdvornov@gmail.com"},"maintainers":[{"name":"lahmatiy","email":"rdvornov@gmail.com"}],"dist":{"shasum":"11a026677bbf9fd7653fd78bd16daea5611a6492","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/es6-promise-polyfill/-/es6-promise-polyfill-1.0.3.tgz"},"directories":{}},"1.1.0":{"name":"es6-promise-polyfill","description":"Polyfill for ES6 Promise","version":"1.1.0","author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/lahmatiy/es6-promise-polyfill.git"},"bugs":{"url":"https://github.com/lahmatiy/es6-promise-polyfill/issues"},"main":"promise.js","dependencies":{},"devDependencies":{},"scripts":{},"keywords":["es6","es2015","polyfill","promise","promises"],"gitHead":"51540701e611418ed36c05e079f9ef724bd35a29","homepage":"https://github.com/lahmatiy/es6-promise-polyfill#readme","_id":"es6-promise-polyfill@1.1.0","_shasum":"b8fb5b3a5dc97292dbc62f8f66472521830cc153","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"lahmatiy","email":"rdvornov@gmail.com"},"maintainers":[{"name":"lahmatiy","email":"rdvornov@gmail.com"}],"dist":{"shasum":"b8fb5b3a5dc97292dbc62f8f66472521830cc153","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/es6-promise-polyfill/-/es6-promise-polyfill-1.1.0.tgz"},"directories":{}},"1.1.1":{"name":"es6-promise-polyfill","description":"Polyfill for ES6 Promise","version":"1.1.1","author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/lahmatiy/es6-promise-polyfill.git"},"bugs":{"url":"https://github.com/lahmatiy/es6-promise-polyfill/issues"},"main":"promise.js","dependencies":{},"devDependencies":{},"scripts":{},"keywords":["es6","es2015","polyfill","promise","promises"],"gitHead":"6cc14cfb63b9c4a27c0392f95a02fb214c13047d","homepage":"https://github.com/lahmatiy/es6-promise-polyfill#readme","_id":"es6-promise-polyfill@1.1.1","_shasum":"05b30d7f4587ea9996a3e887de84b069602b7cc1","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"lahmatiy","email":"rdvornov@gmail.com"},"maintainers":[{"name":"lahmatiy","email":"rdvornov@gmail.com"}],"dist":{"shasum":"05b30d7f4587ea9996a3e887de84b069602b7cc1","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/es6-promise-polyfill/-/es6-promise-polyfill-1.1.1.tgz"},"directories":{}},"1.2.0":{"name":"es6-promise-polyfill","description":"Polyfill for ES6 Promise","version":"1.2.0","author":{"name":"Roman Dvornov","email":"rdvornov@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/lahmatiy/es6-promise-polyfill.git"},"bugs":{"url":"https://github.com/lahmatiy/es6-promise-polyfill/issues"},"main":"promise.js","dependencies":{},"devDependencies":{"promises-aplus-tests":"*"},"scripts":{"test":"promises-aplus-tests test/test-adapter"},"keywords":["es6","es2015","polyfill","promise","promises"],"gitHead":"d9bb9f10de30efcd8f3e95bfae9ba8f5746b2aca","homepage":"https://github.com/lahmatiy/es6-promise-polyfill#readme","_id":"es6-promise-polyfill@1.2.0","_shasum":"f38925f23cb3e3e8ce6cda8ff774fcebbb090cde","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"lahmatiy","email":"rdvornov@gmail.com"},"maintainers":[{"name":"lahmatiy","email":"rdvornov@gmail.com"}],"dist":{"shasum":"f38925f23cb3e3e8ce6cda8ff774fcebbb090cde","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/es6-promise-polyfill/-/es6-promise-polyfill-1.2.0.tgz"},"directories":{}}},"name":"es6-promise-polyfill","time":{"modified":"2016-11-09T05:07:48.292Z","created":"2014-06-19T12:03:51.503Z","1.0.0":"2014-06-19T12:03:51.503Z","1.0.1":"2015-09-14T13:09:22.734Z","1.0.2":"2015-09-14T13:19:56.958Z","1.0.3":"2015-09-30T06:13:14.418Z","1.1.0":"2015-10-15T21:06:16.603Z","1.1.1":"2015-10-18T15:12:17.462Z","1.2.0":"2015-12-08T15:54:46.307Z"},"readmeFilename":"README.md","homepage":"https://github.com/lahmatiy/es6-promise-polyfill#readme"}