{"name":"thunkify-or-promisify","version":"0.3.0","description":"thunkify or promisify a callback style function","main":"index.js","scripts":{"test":"mocha --harmony -R spec -t 50 test/*.js","test-cov":"node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -R dot -t 50 test/*.js","test-travis":"node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- -R dot -t 50 test/*.js"},"repository":{"type":"git","url":"https://github.com/coderhaoxin/thunkify-or-promisify.git"},"keywords":["promisify","thunkify","callback","promise","thunk","koa","co"],"files":["index.js"],"author":{"name":"haoxin"},"license":"MIT","bugs":{"url":"https://github.com/coderhaoxin/thunkify-or-promisify/issues"},"homepage":"https://github.com/coderhaoxin/thunkify-or-promisify","dependencies":{"native-promisify":"1","thunkify":"2"},"devDependencies":{"co":"*","istanbul-harmony":"*","mocha":"*"},"gitHead":"cd2ef73721447a60bcfd9afe37563042432dfb91","_id":"thunkify-or-promisify@0.3.0","_shasum":"36502d1bc436f35b7b7244238779608a3e683ac0","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"},"maintainers":[{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"}],"dist":{"shasum":"36502d1bc436f35b7b7244238779608a3e683ac0","tarball":"http://registry-npm.ywwl.com/thunkify-or-promisify/download/thunkify-or-promisify-0.3.0.tgz","integrity":"sha512-FW3UV98aOAjn2GzCDzIJKj7OVTbzRTZrYeHrdVYNdZK4OqIymzHdp1Q4ALGINHt9G3z5QO+a/7J4OyFwIgp+9A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDFmzx68+CusoxgejkJO0BuE2wH90p/hIXxV9WF9GweFAiEAmSxhj87bol+EPLUopl4Cc5i5qRioWBei4tEcu+RDVqM="}],"size":1336,"noattachment":false,"key":"/thunkify-or-promisify/-/thunkify-or-promisify-0.3.0.tgz"},"readme":"### Deprecated, use [thenify](https://github.com/thenables/thenify) or [thenify-all](https://github.com/thenables/thenify-all)\n\n[![NPM version][npm-img]][npm-url]\n[![Build status][travis-img]][travis-url]\n[![Test coverage][coveralls-img]][coveralls-url]\n[![License][license-img]][license-url]\n[![Dependency status][david-img]][david-url]\n\n### thunkify-or-promisify\nthunkify or promisify a callback style function\n\n```js\nvar wrapper = require('thunkify-or-promisify');\n\n/**\n * @param origin  {function | object}\n * @param type    {string}           - optional ('thunk': thunkify, any other values: promisify)\n * @param ignores {array}            - optional (ignore some functional properties of object)\n *\n * wrapper(origin, type, ignores)\n */\n\n// promisify\nfn = wrapper(fn);\nwrapper(object);\n\n// thunkify\nfn = wrapper(fn, 'thunk');\nwrapper(object, 'thunk');\n```\n\n[npm-img]: https://img.shields.io/npm/v/thunkify-or-promisify.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/thunkify-or-promisify\n[travis-img]: https://img.shields.io/travis/coderhaoxin/thunkify-or-promisify.svg?style=flat-square\n[travis-url]: https://travis-ci.org/coderhaoxin/thunkify-or-promisify\n[coveralls-img]: https://img.shields.io/coveralls/coderhaoxin/thunkify-or-promisify.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/coderhaoxin/thunkify-or-promisify?branch=master\n[license-img]: https://img.shields.io/badge/license-MIT-green.svg?style=flat-square\n[license-url]: http://opensource.org/licenses/MIT\n[david-img]: https://img.shields.io/david/coderhaoxin/thunkify-or-promisify.svg?style=flat-square\n[david-url]: https://david-dm.org/coderhaoxin/thunkify-or-promisify\n\n### License\nMIT\n","publish_time":1413640836494,"_cnpm_publish_time":1413640836494,"dist-tags":{"latest":"0.4.0"}}