{"_id":"promise-to-callback","_rev":"4585833","name":"promise-to-callback","description":"Convert promise to callback interface","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"stevemao","email":"maochenyan@gmail.com"}],"time":{"modified":"2026-04-10T16:31:00.000Z","created":"2015-09-03T06:41:15.152Z","1.0.0":"2015-09-03T06:44:19.589Z","0.0.0":"2015-09-03T06:41:15.152Z"},"users":{},"author":{"name":"Steve Mao","email":"maochenyan@gmail.com","url":"github.com/stevemao"},"repository":{"type":"git","url":"git+https://github.com/stevemao/promise-to-callback.git"},"versions":{"1.0.0":{"name":"promise-to-callback","version":"1.0.0","description":"Convert promise to callback interface","license":"MIT","repository":{"type":"git","url":"git+https://github.com/stevemao/promise-to-callback.git"},"author":{"name":"Steve Mao","email":"maochenyan@gmail.com","url":"github.com/stevemao"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && mocha"},"files":["index.js"],"keywords":["promise","convert","callback"],"dependencies":{"is-fn":"^1.0.0","set-immediate-shim":"^1.0.1"},"devDependencies":{"bluebird":"^2.9.34","mocha":"^2.3.0","pinkie-promise":"^1.0.0","q":"^1.4.1","xo":"^0.7.1"},"xo":{"envs":["node","mocha"]},"gitHead":"401ee1fb958ba1a90c4434645d1197c9b6d04d54","bugs":{"url":"https://github.com/stevemao/promise-to-callback/issues"},"homepage":"https://github.com/stevemao/promise-to-callback#readme","_id":"promise-to-callback@1.0.0","_shasum":"5d2a749010bfb67d963598fcd3960746a68feef7","_from":".","_npmVersion":"2.14.1","_nodeVersion":"3.2.0","_npmUser":{"name":"stevemao","email":"steve.mao@healthinteract.com.au"},"maintainers":[{"name":"stevemao","email":"maochenyan@gmail.com"}],"dist":{"shasum":"5d2a749010bfb67d963598fcd3960746a68feef7","size":1712,"noattachment":false,"key":"/promise-to-callback/-/promise-to-callback-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/promise-to-callback/download/promise-to-callback-1.0.0.tgz"},"directories":{},"publish_time":1441262659589,"_hasShrinkwrap":false,"_cnpm_publish_time":1441262659589,"_cnpmcore_publish_time":"2021-12-16T15:32:40.095Z"},"0.0.0":{"name":"promise-to-callback","version":"0.0.0","description":"Convert promise to callback interface","license":"MIT","repository":{"type":"git","url":"git+https://github.com/stevemao/promise-to-callback.git"},"author":{"name":"Steve Mao","email":"maochenyan@gmail.com","url":"github.com/stevemao"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && mocha"},"files":["index.js"],"keywords":["promise","convert","callback"],"dependencies":{"is-fn":"^1.0.0","set-immediate-shim":"^1.0.1"},"devDependencies":{"bluebird":"^2.9.34","mocha":"^2.3.0","pinkie-promise":"^1.0.0","q":"^1.4.1","xo":"^0.7.1"},"xo":{"envs":["node","mocha"]},"gitHead":"e1e2c52a85014f032e99b1a0eb3fa730f5007390","bugs":{"url":"https://github.com/stevemao/promise-to-callback/issues"},"homepage":"https://github.com/stevemao/promise-to-callback#readme","_id":"promise-to-callback@0.0.0","_shasum":"d8067558139e994a7c21868b62a2b167a6088869","_from":".","_npmVersion":"2.14.1","_nodeVersion":"3.2.0","_npmUser":{"name":"stevemao","email":"steve.mao@healthinteract.com.au"},"maintainers":[{"name":"stevemao","email":"maochenyan@gmail.com"}],"dist":{"shasum":"d8067558139e994a7c21868b62a2b167a6088869","size":1611,"noattachment":false,"key":"/promise-to-callback/-/promise-to-callback-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/promise-to-callback/download/promise-to-callback-0.0.0.tgz"},"directories":{},"publish_time":1441262475152,"_hasShrinkwrap":false,"_cnpm_publish_time":1441262475152,"_cnpmcore_publish_time":"2021-12-16T15:32:40.342Z"}},"readme":"# promise-to-callback [![Build Status](https://travis-ci.org/stevemao/promise-to-callback.svg?branch=master)](https://travis-ci.org/stevemao/promise-to-callback)\n\n> Convert promise to callback interface\n\nBecause there are many promise implementations and callbacks are better to handle errors.\n\n\n## Install\n\n```\n$ npm install --save promise-to-callback\n```\n\n\n## Usage\n\n```js\nvar promiseToCallback = require('promise-to-callback');\n\npromiseToCallback(promise)(function(err, data) {\n\t...\n});\n```\n\n\n## License\n\nMIT © [Steve Mao](https://github.com/stevemao)\n","_attachments":{},"homepage":"https://github.com/stevemao/promise-to-callback#readme","bugs":{"url":"https://github.com/stevemao/promise-to-callback/issues"},"license":"MIT"}