{"name":"parole","version":"1.0.1","description":"Another ES6 promise implementation (compliant with Promises/A+)","main":"parole.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git+ssh://git@github.com/kiltjs/parole.git"},"keywords":["promise","polyfill","add-ons","when","es6"],"author":{"name":"Jesús Germade","email":"jesus@germade.es"},"license":"MIT","bugs":{"url":"https://github.com/kiltjs/parole/issues"},"homepage":"https://github.com/kiltjs/parole#readme","devDependencies":{"chai":"^3.5.0","eslint":"^3.11.1","karma":"^1.2.0","karma-chai":"^0.1.0","karma-chrome-launcher":"^2.0.0","karma-firefox-launcher":"^1.0.0","karma-mocha":"^1.1.1","karma-story-reporter":"^0.3.1","mocha":"^3.0.2","nitro":"^1.10.8","promises-aplus-tests":"^2.1.2","uglify-js":"^2.7.5"},"gitHead":"704911dfd9d51a5b6d7d944d3f4ca7741e34d8f6","_id":"parole@1.0.1","_shasum":"0d420fb9a1b353da05ea62d0a7d6b01f135648fd","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.1","_npmUser":{"name":"jgermade","email":"jesus@germade.es"},"dist":{"shasum":"0d420fb9a1b353da05ea62d0a7d6b01f135648fd","tarball":"http://registry-npm.ywwl.com/parole/download/parole-1.0.1.tgz","integrity":"sha512-GXxRFZ+nlwRX/99DU8RW9M/F6uHdRvdVWe3gT5l0AUkSiaJ3t0yw4XUc3wR46eRyAszyK9T7oIgsr7IHLTX7Og==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC5e/KUDbpoNCyS98cZL9LajPord+v4fnbe8P49cLCdDAiAFWxtGvBficDrIPatFq9ZIM7sPtxXPabampkJpxYkzCg=="}],"size":6386,"noattachment":false,"key":"/parole/-/parole-1.0.1.tgz"},"maintainers":[{"name":"jgermade","email":"jesus@germade.es"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/parole-1.0.1.tgz_1481375655773_0.34405625564977527"},"directories":{},"readme":"\n# Parole\n\n[<img src=\"https://raw.githubusercontent.com/promises-aplus/promises-spec/master/logo.svg\" alt=\"Promises/A+ logo\" width=\"82px\" height=\"82px\" title=\"Promises/A+ 1.0 compliant\" align=\"right\" />](https://promisesaplus.com/)\n\n<!-- [<img src=\"https://promisesaplus.com/assets/logo-small.png\" alt=\"Promises/A+ logo\" title=\"Promises/A+ 1.0 compliant\" align=\"right\" />](https://promisesaplus.com/) -->\n\nAnother ES6 promise implementation ([compliant](https://github.com/promises-aplus/promises-tests) with [Promises/A+](https://github.com/promises-aplus/promises-spec))\n\n[![ᴋɪʟᴛ ᴊs](https://jesus.germade.dev/assets/images/badge-kiltjs.svg)](https://github.com/kiltjs)\n[![npm](https://img.shields.io/npm/v/parole.svg)](https://www.npmjs.com/package/parole)\n[![Build Status](https://cloud.drone.io/api/badges/kiltjs/parole/status.svg)](https://cloud.drone.io/kiltjs/parole)\n[![codecov](https://codecov.io/gh/jgermade/parole/branch/master/graph/badge.svg?token=TA3W7MIMB9)](https://codecov.io/gh/jgermade/parole)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\n## Installation\n```.sh\nnpm install parole\n\n# alternatively you can use bower (minified version by default)\nyarn add parole\n```\n\n### ES6 fulfill\n\n> `Parole` implements [ES6 Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) specs\n\nImplements:\n- Promise.prototype.then\n- Promise.prototype.catch\n- Promise.prototype.finally\n\nAlso static methods\n- Promise.resolve\n- Promise.reject\n- Promise.all\n- Promise.allSettled\n- Promise.any\n- Promise.race\n\nIncludes:\n- Promise.defer\n\n``` js\n// parole respects the es6 promise specification\n// you can use parole as global polyfill\n\nif( !window.Promise ) {\n  window.Promise = Parole;\n}\n```\n\n### Example\n``` js\nnew Parole((resolve, reject) => {\n    resolve('gogogo!')\n  })\n\n  .then((result) => {\n    console.log('checkpoint 1', result)\n    throw 'whoops!'\n  })\n\n  .then(\n    (result) => {\n      console.log('checkpoint 2', result)\n    },\n    (result) => {\n      console.log('checkpoint 2.1', result)\n      return new Parole((resolve, reject) => {\n        setTimeout(() => resolve('all right!'), 400)\n      })\n    },\n  )\n\n  .then(\n    (result) => console.log('checkpoint 3', result),\n    (reason) => console.log('checkpoint 3.1', reason),\n  )\n;\n```\n> output\n\n```.sh\ncheckpoint 1 gogogo!\ncheckpoint 2.1 whoops!\n# elapsed 400ms\ncheckpoint 3 all right!\n```\n\n","publish_time":1481375656396,"_cnpm_publish_time":1481375656396,"dist-tags":{"latest":"2.0.28"}}