{"_id":"i-promise","_rev":"26-7d2a515dd47ff2024d011b4c615daab3","name":"i-promise","description":"Returns an available ES6 Promise implementation, browserify friendly.","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.5":{"name":"i-promise","version":"1.0.5","description":"Returns an available ES6 Promise implementation, browserify friendly.","main":"index.js","dependencies":{},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/tracker1/i-promise.git"},"keywords":["es6","promise","async","flow-control"],"author":{"name":"Michael J. Ryan","email":"tracker1@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/tracker1/i-promise/issues"},"homepage":"https://github.com/tracker1/i-promise","gitHead":"28c8f4f894fbd50298cda90196f56db66a5df77f","_id":"i-promise@1.0.5","_shasum":"b04224ae6e080b1c09f1b90d5e1db342f8e164a1","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"tracker1","email":"tracker1@gmail.com"},"maintainers":[{"name":"tracker1","email":"tracker1@gmail.com"}],"dist":{"shasum":"b04224ae6e080b1c09f1b90d5e1db342f8e164a1","tarball":"https://registry.npmjs.org/i-promise/-/i-promise-1.0.5.tgz","integrity":"sha512-EB4x54VzCpY2OWEzdO3tqz4kSrriXO6+gWfFMKBzkhOfmukACs89HGXbbgq8BOGzoRyfJXYBHGMEBciGcMD0Aw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcXIGdeDz/fdgrmG9STpMCu55GlpDwfrVcgkMzVivuswIgT9luPnQ5LpWxzoGkwuWzCBcTXOjQHSQnUzKCb4TH3sk="}]}},"1.1.0":{"name":"i-promise","version":"1.1.0","description":"Returns an available ES6 Promise implementation, browserify friendly.","main":"index.js","dependencies":{},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/tracker1/i-promise.git"},"keywords":["es6","promise","async","flow-control"],"author":{"name":"Michael J. Ryan","email":"tracker1@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/tracker1/i-promise/issues"},"homepage":"https://github.com/tracker1/i-promise","gitHead":"ce9a2f2a532522e4510997a5c371430a1730b593","_id":"i-promise@1.1.0","_shasum":"5e1a431a6c3317ea4df0110b681299c8747ff551","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"tracker1","email":"tracker1@gmail.com"},"maintainers":[{"name":"tracker1","email":"tracker1@gmail.com"}],"dist":{"shasum":"5e1a431a6c3317ea4df0110b681299c8747ff551","tarball":"https://registry.npmjs.org/i-promise/-/i-promise-1.1.0.tgz","integrity":"sha512-Far7UIpFspNQk5EAFedi44JYa16YeYRjkNVnJZpIOsKhPsDFYmU4wrn71vPzhSo1cwMHKmjBQ+mqXvnppuwfCQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIACdVfjaQuBTUG6a9/WpArNURFEOkThToHkOD/xjg7yuAiA8HCriB6sSPDO4NApcWRDQgmQJkLO0HTZv67cg602MPg=="}]}}},"readme":"i-promise\r\n=========\r\n\r\nWhen calling this module a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) library will be returned if one is available.\r\n\r\nThis module will not declare any dependencies, you should install a fallback library downstream if needed.\r\n\r\n## Install\r\n\r\n`npm install --save i-promise`\r\n\r\n## Use\r\n\r\n```\r\nvar Promise = require('i-promise');\r\nif (!Promise) throw new Error('No ES6 Promise Library Available.');\r\n\r\nreturn Promise.resolve('success')\r\n```\r\n\r\n## Notes\r\n\r\nIn a browser (via browserify), it will return either `window.Promise`, `window.Q.Promise` or `window.Q.promise` in that order, you should have an [es6-promise shim](https://github.com/paulmillr/es6-shim/) or the [Q library](https://github.com/kriskowal/q) loaded globally in the browser if you need promises in older browsers.\r\n\r\nIn node, attempts to use the following will be made.\r\n\r\n* native `Promise` (newer versions of node.js)\r\n* [es6-promise](https://www.npmjs.org/package/es6-promise)\r\n* [es6-promises](https://www.npmjs.org/package/es6-promises)\r\n* [bluebird](https://www.npmjs.org/package/bluebird)\r\n* [q](https://www.npmjs.org/package/q) (`Promise` then `promise`)\r\n\r\n## Preferring user implementation over native\r\n\r\nDefault behavior is to always favor native implementation if found. You can still favor the implementation of your choice without overriding global `Promise`:\r\n\r\n```js\r\nrequire('i-promise/config').use(MyPromiseImplementation);\r\n```\r\n\r\nYou must run this code **before** any call to `require('i-promise')`.\r\n","maintainers":[{"name":"tracker1","email":"tracker1@gmail.com"}],"time":{"modified":"2022-06-18T23:44:45.199Z","created":"2014-11-22T00:13:43.017Z","1.0.0":"2014-11-22T00:13:43.017Z","1.0.1":"2014-11-22T00:37:00.787Z","1.0.2":"2014-11-22T00:52:28.624Z","1.0.3":"2014-11-22T01:00:15.806Z","1.0.4":"2014-11-22T01:01:30.462Z","1.0.5":"2014-11-22T01:21:04.926Z","1.1.0":"2015-02-10T19:06:39.160Z"},"homepage":"https://github.com/tracker1/i-promise","keywords":["es6","promise","async","flow-control"],"repository":{"type":"git","url":"https://github.com/tracker1/i-promise.git"},"author":{"name":"Michael J. Ryan","email":"tracker1@gmail.com"},"bugs":{"url":"https://github.com/tracker1/i-promise/issues"},"license":"ISC","readmeFilename":"README.md","users":{"llambda":true}}