{"name":"thunkify-or-promisify","version":"0.4.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":"65fce6b6f89886d862bfc80bff7e5a378ba4e090","_id":"thunkify-or-promisify@0.4.0","_shasum":"92bb2abaa2b4af65813f226c226266a7ecb1ce2d","_from":".","_npmVersion":"2.1.18","_nodeVersion":"1.0.2","_npmUser":{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"},"maintainers":[{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"}],"dist":{"shasum":"92bb2abaa2b4af65813f226c226266a7ecb1ce2d","tarball":"http://registry-npm.ywwl.com/thunkify-or-promisify/download/thunkify-or-promisify-0.4.0.tgz","integrity":"sha512-+Ok/iAEVyShlM8EX5ledhSjJC07L7WQ+oqj0o05dd+UyLZsh36y+ceL34owsWbzX1ucfARZBwzm8KbewTPuBbA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGhd9teS8jnJJE9AarY5Kb2onKTkkKIpr5iazKVrDJATAiAa4pGNdd3tVxO5uriQw5wdYvHf+DdZKgtJmxhXCwUGXw=="}],"size":1380,"noattachment":false,"key":"/thunkify-or-promisify/-/thunkify-or-promisify-0.4.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":1421667029996,"_cnpm_publish_time":1421667029996,"dist-tags":{"latest":"0.4.0"}}