{"_id":"pinkie","_rev":"6-c3d2159d0b29cd24a436b81cc08b0f7b","name":"pinkie","description":"Itty bitty little widdle twinkie pinkie ES2015 Promise implementation","dist-tags":{"latest":"2.0.1"},"versions":{"0.0.0":{"name":"pinkie","version":"0.0.0","description":"Sweetly small promises/a+ implementation","license":"MIT","repository":{"type":"git","url":"git+https://github.com/floatdrop/pinkie.git"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com","url":"github.com/floatdrop"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["promise","es6"],"dependencies":{},"devDependencies":{"mocha":"*","promises-aplus-tests":"*"},"gitHead":"a467b29d5a2f25a588d3a79275ae05207d216b3c","bugs":{"url":"https://github.com/floatdrop/pinkie/issues"},"homepage":"https://github.com/floatdrop/pinkie#readme","_id":"pinkie@0.0.0","_shasum":"4f5a4afb5336a4957e6affdcf93431e36f3bc270","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.0","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"dist":{"shasum":"4f5a4afb5336a4957e6affdcf93431e36f3bc270","tarball":"http://registry.npmjs.org/pinkie/-/pinkie-0.0.0.tgz"},"directories":{}},"0.0.1":{"name":"pinkie","version":"0.0.1","description":"Itty bitty little wittle twinkie pinkie ES6 Promise implementation","license":"MIT","repository":{"type":"git","url":"git+https://github.com/floatdrop/pinkie.git"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com","url":"github.com/floatdrop"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["promise","es6"],"dependencies":{},"devDependencies":{"mocha":"*","promises-aplus-tests":"*"},"gitHead":"cfc516c032d60427f857413ba379f45c893df9a6","bugs":{"url":"https://github.com/floatdrop/pinkie/issues"},"homepage":"https://github.com/floatdrop/pinkie#readme","_id":"pinkie@0.0.1","_shasum":"d829dd84053ac8d39bbacccf6bad98dfce163a83","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.0","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"dist":{"shasum":"d829dd84053ac8d39bbacccf6bad98dfce163a83","tarball":"http://registry.npmjs.org/pinkie/-/pinkie-0.0.1.tgz"},"directories":{}},"0.0.2":{"name":"pinkie","version":"0.0.2","description":"Itty bitty little wittle twinkie pinkie ES6 Promise implementation","license":"MIT","repository":{"type":"git","url":"git+https://github.com/floatdrop/pinkie.git"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com","url":"github.com/floatdrop"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["promise","es6"],"dependencies":{},"devDependencies":{"mocha":"*","promises-aplus-tests":"*"},"gitHead":"4a0f80174d7e32ddaf758035b6ac2b70fe80be98","bugs":{"url":"https://github.com/floatdrop/pinkie/issues"},"homepage":"https://github.com/floatdrop/pinkie#readme","_id":"pinkie@0.0.2","_shasum":"38d4aa2f720dd91ec7ddbf5c136bdde53d18d8ec","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.0","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"dist":{"shasum":"38d4aa2f720dd91ec7ddbf5c136bdde53d18d8ec","tarball":"http://registry.npmjs.org/pinkie/-/pinkie-0.0.2.tgz"},"directories":{}},"1.0.0":{"name":"pinkie","version":"1.0.0","description":"Itty bitty little wittle twinkie pinkie ES6 Promise implementation","license":"MIT","repository":{"type":"git","url":"git+https://github.com/floatdrop/pinkie.git"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com","url":"github.com/floatdrop"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["promise","es6"],"dependencies":{},"devDependencies":{"mocha":"*","promises-aplus-tests":"*"},"gitHead":"5f8b60f31ec8624995d224f5990c81be83dd1d90","bugs":{"url":"https://github.com/floatdrop/pinkie/issues"},"homepage":"https://github.com/floatdrop/pinkie#readme","_id":"pinkie@1.0.0","_shasum":"5a47f28ba1015d0201bda7bf0f358e47bec8c7e4","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.0","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"dist":{"shasum":"5a47f28ba1015d0201bda7bf0f358e47bec8c7e4","tarball":"http://registry.npmjs.org/pinkie/-/pinkie-1.0.0.tgz"},"directories":{}},"2.0.0":{"name":"pinkie","version":"2.0.0","description":"Itty bitty little widdle twinkie pinkie ES2015 Promise implementation","license":"MIT","repository":{"type":"git","url":"https://github.com/floatdrop/pinkie"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com","url":"github.com/floatdrop"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && nyc mocha","coverage":"nyc report --reporter=text-lcov | coveralls"},"files":["index.js"],"keywords":["promise","promises","es2015","es6"],"devDependencies":{"coveralls":"^2.11.4","mocha":"*","nyc":"^3.2.2","promises-aplus-tests":"*","xo":"^0.10.1"},"gitHead":"1aef6ed3735dddcf0cb25b81946626379be35a8f","bugs":{"url":"https://github.com/floatdrop/pinkie/issues"},"homepage":"https://github.com/floatdrop/pinkie","_id":"pinkie@2.0.0","_shasum":"51737918d16ab5859a90a5a031b6f7e0d6f245cc","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.0","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"dist":{"shasum":"51737918d16ab5859a90a5a031b6f7e0d6f245cc","tarball":"http://registry.npmjs.org/pinkie/-/pinkie-2.0.0.tgz"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"directories":{}},"2.0.1":{"name":"pinkie","version":"2.0.1","description":"Itty bitty little widdle twinkie pinkie ES2015 Promise implementation","license":"MIT","repository":{"type":"git","url":"https://github.com/floatdrop/pinkie"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com","url":"github.com/floatdrop"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && nyc mocha","coverage":"nyc report --reporter=text-lcov | coveralls"},"files":["index.js"],"keywords":["promise","promises","es2015","es6"],"devDependencies":{"core-assert":"^0.1.1","coveralls":"^2.11.4","mocha":"*","nyc":"^3.2.2","promises-aplus-tests":"*","xo":"^0.10.1"},"gitHead":"11d969408e6004f50c3b442fe330f2ead7eb3619","bugs":{"url":"https://github.com/floatdrop/pinkie/issues"},"homepage":"https://github.com/floatdrop/pinkie","_id":"pinkie@2.0.1","_shasum":"4236c86fc29f261c2045bbe81f78cbb2a5e8306c","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.0","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"dist":{"shasum":"4236c86fc29f261c2045bbe81f78cbb2a5e8306c","tarball":"http://registry.npmjs.org/pinkie/-/pinkie-2.0.1.tgz"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"directories":{}}},"readme":"

\n\t
\n\t\"pinkie\"\n\t
\n\t
\n

\n\n> Itty bitty little widdle twinkie pinkie [ES2015 Promise](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise-objects) implementation\n\n[![Build Status](https://travis-ci.org/floatdrop/pinkie.svg?branch=master)](https://travis-ci.org/floatdrop/pinkie) [![Coverage Status](https://coveralls.io/repos/floatdrop/pinkie/badge.svg?branch=master&service=github)](https://coveralls.io/github/floatdrop/pinkie?branch=master)\n\nThere are [tons of Promise implementations](https://github.com/promises-aplus/promises-spec/blob/master/implementations.md#standalone) out there, but all of them focus on browser compatibility and are often bloated with functionality.\n\nThis module is an exact Promise specification polyfill (like [native-promise-only](https://github.com/getify/native-promise-only)), but in Node.js land (it should be browserify-able though).\n\n\n## Install\n\n```\n$ npm install --save pinkie\n```\n\n\n## Usage\n\n```js\nvar fs = require('fs');\nvar Promise = require('pinkie');\n\nnew Promise(function (resolve, reject) {\n\tfs.readFile('foo.json', 'utf8', function (err, data) {\n\t\tif (err) {\n\t\t\treject(err);\n\t\t\treturn;\n\t\t}\n\n\t\tresolve(data);\n\t});\n});\n//=> Promise\n```\n\n\n### API\n\n`pinkie` exports bare [ES2015 Promise](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise-objects) implementation and polyfills [Node.js rejection events](https://nodejs.org/api/process.html#process_event_unhandledrejection). In case you forgot:\n\n#### new Promise(executor)\n\nReturns new instance of `Promise`.\n\n##### executor\n\n*Required* \nType: `function`\n\nFunction with two arguments `resolve` and `reject`. The first argument fulfills the promise, the second argument rejects it.\n\n#### pinkie.all(promises)\n\nReturns a promise that resolves when all of the promises in the `promises` Array argument have resolved.\n\n#### pinkie.race(promises)\n\nReturns a promise that resolves or rejects as soon as one of the promises in the `promises` Array resolves or rejects, with the value or reason from that promise.\n\n#### pinkie.reject(reason)\n\nReturns a Promise object that is rejected with the given `reason`.\n\n#### pinkie.resolve(value)\n\nReturns a Promise object that is resolved with the given `value`. If the `value` is a thenable (i.e. has a then method), the returned promise will \"follow\" that thenable, adopting its eventual state; otherwise the returned promise will be fulfilled with the `value`.\n\n\n## Related\n\n- [pinkie-promise](https://github.com/floatdrop/pinkie-promise) - Returns the native Promise or this module\n\n\n## License\n\nMIT © [Vsevolod Strukchinsky](http://github.com/floatdrop)\n","maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"time":{"modified":"2015-11-17T10:14:11.603Z","created":"2015-05-10T19:57:51.100Z","0.0.0":"2015-05-10T19:57:51.100Z","0.0.1":"2015-05-10T20:31:36.745Z","0.0.2":"2015-05-11T05:28:50.155Z","1.0.0":"2015-05-11T05:58:51.352Z","2.0.0":"2015-11-12T08:40:50.048Z","2.0.1":"2015-11-17T10:14:11.603Z"},"homepage":"https://github.com/floatdrop/pinkie","keywords":["promise","promises","es2015","es6"],"repository":{"type":"git","url":"https://github.com/floatdrop/pinkie"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com","url":"github.com/floatdrop"},"bugs":{"url":"https://github.com/floatdrop/pinkie/issues"},"license":"MIT","readmeFilename":"readme.md","_attachments":{},"_etag":"\"DH1FZ8QTRCOC0CXGU6NC5ZXIV\""}