{ "_args": [ [ { "raw": "thenify-all@^1.0.0", "scope": null, "escapedName": "thenify-all", "name": "thenify-all", "rawSpec": "^1.0.0", "spec": ">=1.0.0 <2.0.0", "type": "range" }, "/home/jdaugherty/work/GT2/GT2-Android/node_modules/mz" ] ], "_from": "thenify-all@>=1.0.0 <2.0.0", "_id": "thenify-all@1.6.0", "_inCache": true, "_location": "/thenify-all", "_nodeVersion": "0.11.14", "_npmUser": { "name": "dead_horse", "email": "dead_horse@qq.com" }, "_npmVersion": "2.1.12", "_phantomChildren": {}, "_requested": { "raw": "thenify-all@^1.0.0", "scope": null, "escapedName": "thenify-all", "name": "thenify-all", "rawSpec": "^1.0.0", "spec": ">=1.0.0 <2.0.0", "type": "range" }, "_requiredBy": [ "/mz" ], "_resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", "_shasum": "1a1918d402d8fc3f98fbf234db0bcc8cc10e9726", "_shrinkwrap": null, "_spec": "thenify-all@^1.0.0", "_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/mz", "author": { "name": "Jonathan Ong", "email": "me@jongleberry.com", "url": "http://jongleberry.com" }, "bugs": { "url": "https://github.com/thenables/thenify-all/issues" }, "dependencies": { "thenify": ">= 3.1.0 < 4" }, "description": "Promisifies all the selected functions in an object", "devDependencies": { "bluebird": "2", "istanbul": "0", "mocha": "2" }, "directories": {}, "dist": { "shasum": "1a1918d402d8fc3f98fbf234db0bcc8cc10e9726", "tarball": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz" }, "engines": { "node": ">=0.8" }, "files": [ "index.js" ], "gitHead": "f436113d8076adb9138c222a61689acdef6f6bd9", "homepage": "https://github.com/thenables/thenify-all#readme", "keywords": [ "promisify", "promise", "thenify", "then", "es6" ], "license": "MIT", "maintainers": [ { "name": "jongleberry", "email": "jonathanrichardong@gmail.com" }, { "name": "dead-horse", "email": "dead_horse@qq.com" }, { "name": "dead_horse", "email": "dead_horse@qq.com" } ], "name": "thenify-all", "optionalDependencies": {}, "readme": "\n# thenify-all\n\n[![NPM version][npm-image]][npm-url]\n[![Build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n[![Dependency Status][david-image]][david-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n[![Gittip][gittip-image]][gittip-url]\n\nPromisifies all the selected functions in an object.\n\n```js\nvar thenifyAll = require('thenify-all');\n\nvar fs = thenifyAll(require('fs'), {}, [\n 'readFile',\n 'writeFile',\n]);\n\nfs.readFile(__filename).then(function (buffer) {\n console.log(buffer.toString());\n});\n```\n\n## API\n\n### var obj = thenifyAll(source, [obj], [methods])\n\nPromisifies all the selected functions in an object.\n\n- `source` - the source object for the async functions\n- `obj` - the destination to set all the promisified methods\n- `methods` - an array of method names of `source`\n\n### var obj = thenifyAll.withCallback(source, [obj], [methods])\n\nPromisifies all the selected functions in an object and backward compatible with callback.\n\n- `source` - the source object for the async functions\n- `obj` - the destination to set all the promisified methods\n- `methods` - an array of method names of `source`\n\n### thenifyAll.thenify\n\nExports [thenify](https://github.com/thenables/thenify) this package uses.\n\n[gitter-image]: https://badges.gitter.im/thenables/thenify-all.png\n[gitter-url]: https://gitter.im/thenables/thenify-all\n[npm-image]: https://img.shields.io/npm/v/thenify-all.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/thenify-all\n[github-tag]: http://img.shields.io/github/tag/thenables/thenify-all.svg?style=flat-square\n[github-url]: https://github.com/thenables/thenify-all/tags\n[travis-image]: https://img.shields.io/travis/thenables/thenify-all.svg?style=flat-square\n[travis-url]: https://travis-ci.org/thenables/thenify-all\n[coveralls-image]: https://img.shields.io/coveralls/thenables/thenify-all.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/thenables/thenify-all\n[david-image]: http://img.shields.io/david/thenables/thenify-all.svg?style=flat-square\n[david-url]: https://david-dm.org/thenables/thenify-all\n[license-image]: http://img.shields.io/npm/l/thenify-all.svg?style=flat-square\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/thenify-all.svg?style=flat-square\n[downloads-url]: https://npmjs.org/package/thenify-all\n[gittip-image]: https://img.shields.io/gratipay/jonathanong.svg?style=flat-square\n[gittip-url]: https://gratipay.com/jonathanong/\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/thenables/thenify-all.git" }, "scripts": { "test": "mocha --reporter spec", "test-cov": "istanbul cover node_modules/.bin/_mocha -- --reporter dot", "test-travis": "istanbul cover node_modules/.bin/_mocha --report lcovonly -- --reporter dot" }, "version": "1.6.0" }