{"_id":"native-promisify","_rev":"1444642","name":"native-promisify","description":"convert callback function to promise only use native promise","dist-tags":{"latest":"1.2.0"},"maintainers":[{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"}],"time":{"modified":"2026-09-14T08:42:39.000Z","created":"2014-10-12T10:53:50.160Z","1.2.0":"2015-01-19T11:33:01.250Z","1.1.0":"2014-11-18T05:43:46.288Z","1.0.0":"2014-10-16T03:50:15.248Z","0.3.0":"2014-10-12T11:13:08.905Z","0.2.0":"2014-10-12T10:58:17.128Z","0.1.0":"2014-10-12T10:53:50.160Z"},"users":{"briandipalma":true},"author":{"name":"haoxin"},"repository":{"type":"git","url":"https://github.com/coderhaoxin/native-promisify.git"},"versions":{"1.2.0":{"name":"native-promisify","version":"1.2.0","description":"convert callback function to promise only use native promise","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha --harmony -R spec -t 500 test/*.js","test-cov":"node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -R dot -t 500 test/*.js","test-travis":"node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- -R dot -t 500 test/*.js"},"repository":{"type":"git","url":"https://github.com/coderhaoxin/native-promisify.git"},"keywords":["promisify","callback","promise","native","es6","co"],"files":["index.js","Readme.md"],"engines":{"node":">= 0.11.13"},"author":{"name":"haoxin"},"license":"MIT","bugs":{"url":"https://github.com/coderhaoxin/native-promisify/issues"},"homepage":"https://github.com/coderhaoxin/native-promisify","devDependencies":{"istanbul":"*","mocha":"*"},"gitHead":"a962723dc02b3c3e0917516d08d062b8078ac260","_id":"native-promisify@1.2.0","_shasum":"fe78e2546c3c466d578111f0f281c8b4f9326ecb","_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":"fe78e2546c3c466d578111f0f281c8b4f9326ecb","tarball":"http://registry-npm.ywwl.com/native-promisify/download/native-promisify-1.2.0.tgz","integrity":"sha512-cE9bnF6u1yp8/gHj28g3s0VfrpWWgxG+Aiu/0aKI7DX8tFCdcfbDEUT4JnAu4RDJrAszPkAlvF9hnVT3LfWV4A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH+QPvmwuqnBM+rxpxivCyRAtgUmTyb0W6Zj+AQJdalmAiBk2jnxeLFZB3wveKuxnCijyb5cLU76uYdXSLavaQWueQ=="}],"size":1615,"noattachment":false,"key":"/native-promisify/-/native-promisify-1.2.0.tgz"},"publish_time":1421667181250,"_cnpm_publish_time":1421667181250},"1.1.0":{"name":"native-promisify","version":"1.1.0","description":"convert callback function to promise only use native promise","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha --harmony -R spec -t 500 test/*.js","test-cov":"node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -R dot -t 500 test/*.js","test-travis":"node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- -R dot -t 500 test/*.js"},"repository":{"type":"git","url":"https://github.com/coderhaoxin/native-promisify.git"},"keywords":["promisify","callback","promise","native","es6","co"],"files":["index.js","Readme.md"],"engines":{"node":">= 0.11.13"},"author":{"name":"haoxin"},"license":"MIT","bugs":{"url":"https://github.com/coderhaoxin/native-promisify/issues"},"homepage":"https://github.com/coderhaoxin/native-promisify","devDependencies":{"istanbul":"*","mocha":"*"},"gitHead":"406641dd28b05c132e3d2b6bea8e257482329c35","_id":"native-promisify@1.1.0","_shasum":"5b1e1375048a78c68c717c92d8efd166ed54ab10","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"},"maintainers":[{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"}],"dist":{"shasum":"5b1e1375048a78c68c717c92d8efd166ed54ab10","tarball":"http://registry-npm.ywwl.com/native-promisify/download/native-promisify-1.1.0.tgz","integrity":"sha512-wVtKPeEsNGFTEL+b2ocq6O0H29Pzwmp0gMkSmMzuHMJozT5Rw5rC7a4Ysp9cxgUJ7/Lm7U1hw1TceEwuGna93Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAqYBuJnnnoJLAwO5u7HlwKpzRVOzWLQw7CDA9/MhcbbAiAXqyZB7+o5T2WTqda9rdhQcnMUCzk7qemDKpIk7Fc9Hg=="}],"size":1570,"noattachment":false,"key":"/native-promisify/-/native-promisify-1.1.0.tgz"},"publish_time":1416289426288,"_cnpm_publish_time":1416289426288},"1.0.0":{"name":"native-promisify","version":"1.0.0","description":"convert callback function to promise only use native promise","main":"index.js","directories":{"test":"test"},"scripts":{"test":"_mocha -R spec -t 50 test/*.js","test-cov":"node node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -R dot -t 50 test/*.js","test-travis":"node 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/native-promisify.git"},"keywords":["promisify","callback","promise","native","es6","co"],"files":["index.js","Readme.md"],"engines":{"node":">= 0.11.13"},"author":{"name":"haoxin"},"license":"MIT","bugs":{"url":"https://github.com/coderhaoxin/native-promisify/issues"},"homepage":"https://github.com/coderhaoxin/native-promisify","devDependencies":{"istanbul":"*","mocha":"*"},"gitHead":"d1170e9adfa797dae38e8f9ab365976ea59f0af8","_id":"native-promisify@1.0.0","_shasum":"d13477ef87c429394b74c905f02157c02a118c5a","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"},"maintainers":[{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"}],"dist":{"shasum":"d13477ef87c429394b74c905f02157c02a118c5a","tarball":"http://registry-npm.ywwl.com/native-promisify/download/native-promisify-1.0.0.tgz","integrity":"sha512-SGIqtppSmx6M+/bYpCj21xc9BdqN3OpH7ZiFzZ53R0oK8FSmhK4s7wjdnVGHC0QzXNdim83bxhS0Ca2lkGRWbQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBbLClQZIFPnW+J42aywG1Wf3ldm6762P/E0YgPLryoLAiEAp6VlkmGaLLibH8SvzDrYM/J+/utzVC1JIKn7VgNgEbg="}],"size":1194,"noattachment":false,"key":"/native-promisify/-/native-promisify-1.0.0.tgz"},"publish_time":1413431415248,"_cnpm_publish_time":1413431415248},"0.3.0":{"name":"native-promisify","version":"0.3.0","description":"convert callback function to promise only use native promise","main":"index.js","directories":{"test":"test"},"scripts":{"test":"_mocha -R spec -t 50 test/*.js","test-cov":"node node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -R dot -t 50 test/*.js","test-travis":"node 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/native-promisify.git"},"keywords":["promisify","callback","promise","native","es6"],"files":["index.js","Readme.md"],"engines":{"node":">= 0.11.13"},"author":{"name":"haoxin"},"license":"MIT","bugs":{"url":"https://github.com/coderhaoxin/native-promisify/issues"},"homepage":"https://github.com/coderhaoxin/native-promisify","devDependencies":{"istanbul":"^0.3.2","mocha":"^1.21.5"},"gitHead":"c6f2d4ca29fe3fd5dbca68ff037980dbaa2f4fe8","_id":"native-promisify@0.3.0","_shasum":"fd99282967ba7d29764646dcd7e9a8b7cce06472","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"},"maintainers":[{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"}],"dist":{"shasum":"fd99282967ba7d29764646dcd7e9a8b7cce06472","tarball":"http://registry-npm.ywwl.com/native-promisify/download/native-promisify-0.3.0.tgz","integrity":"sha512-B2U7gnVQoMsqfx2D9rizoMWJtqgKm9F/O46pfB+MjZxIt5QE3olQ8qOLUzxCOaTn4BZgz2b2Fahth2EDlB6AjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFc0iQDhgCrmALt/RxWlPJEwMDQCp6aOn7zaRXqaneIqAiAoTBz6VTtyeorwRJgHZ543FLBkU+tSq4NGSjcVIdmNsA=="}],"size":1195,"noattachment":false,"key":"/native-promisify/-/native-promisify-0.3.0.tgz"},"publish_time":1413112388905,"_cnpm_publish_time":1413112388905},"0.2.0":{"name":"native-promisify","version":"0.2.0","description":"convert callback function to promise only use native promise","main":"index.js","directories":{"test":"test"},"scripts":{"test":"_mocha -R spec -t 50 test/*.js","test-cov":"node node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -R dot -t 50 test/*.js","test-travis":"node 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/native-promisify.git"},"keywords":["promisify","callback","promise","native","es6"],"files":["index.js","Readme.md"],"engines":{"node":">= 0.11.13"},"author":{"name":"haoxin"},"license":"MIT","bugs":{"url":"https://github.com/coderhaoxin/native-promisify/issues"},"homepage":"https://github.com/coderhaoxin/native-promisify","devDependencies":{"istanbul":"^0.3.2","mocha":"^1.21.5"},"gitHead":"f0f78350fd8e5b5af47b86166fca5e6290eb3513","_id":"native-promisify@0.2.0","_shasum":"8ec9afeda96cda03553a659f308af50a031584d3","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"},"maintainers":[{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"}],"dist":{"shasum":"8ec9afeda96cda03553a659f308af50a031584d3","tarball":"http://registry-npm.ywwl.com/native-promisify/download/native-promisify-0.2.0.tgz","integrity":"sha512-gW09qIKBTfFXRdPjSLEfZ0dr3O9CRl8+4kfqHodotXkOHT+/RanLHVC/pytZK7oWDofklynr1tffXyBN9dV5zQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4OVLNt2e/OTiefLNasSFqjeZpyDnS0VdlvttHzpIj6gIhANaf8S6wXrudqoRvEWJqx5D60673svACSCBrIK5VkGWR"}],"size":1197,"noattachment":false,"key":"/native-promisify/-/native-promisify-0.2.0.tgz"},"publish_time":1413111497128,"_cnpm_publish_time":1413111497128},"0.1.0":{"name":"native-promisify","version":"0.1.0","description":"convert callback function to promise only use native promise","main":"index.js","directories":{"test":"test"},"scripts":{"test":"_mocha -R spec -t 50 test/*.js","test-cov":"node node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -R dot -t 50 test/*.js","test-travis":"node 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/native-promisify.git"},"keywords":["promisify","callback","promise","native","es6"],"files":["index.js","Readme.md"],"engines":{"node":">= 0.11.13"},"author":{"name":"haoxin"},"license":"MIT","bugs":{"url":"https://github.com/coderhaoxin/native-promisify/issues"},"homepage":"https://github.com/coderhaoxin/native-promisify","devDependencies":{"istanbul":"^0.3.2","mocha":"^1.21.5"},"gitHead":"02a5503f3966424d1d793f5ce74e89b8142cf392","_id":"native-promisify@0.1.0","_shasum":"7e44135bcba0ade6bf3a50bca2b1c722fb375b1d","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"},"maintainers":[{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"}],"dist":{"shasum":"7e44135bcba0ade6bf3a50bca2b1c722fb375b1d","tarball":"http://registry-npm.ywwl.com/native-promisify/download/native-promisify-0.1.0.tgz","integrity":"sha512-PPxQtRa1mNnFWxMJjZ2Y5iC4YylMHPNR0v0wnJfnXkmgz3yqpsyLmG0cqOdlKJ+mpDnv4p7gyH2OyFiEjcZo7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDos077b8PPImWA3dCXfSoMGLFxZoGivZD+i1w042ATewIhAJkXWBoNJIg9cbgx70r4ck6WtZ6qdzjOLdP5LPCvPRCR"}],"size":1194,"noattachment":false,"key":"/native-promisify/-/native-promisify-0.1.0.tgz"},"publish_time":1413111230160,"_cnpm_publish_time":1413111230160}},"readme":"### Deprecated, please 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### native-promisify\n\n```js\nvar promisify = require('native-promisify');\n```\n\n* promisify function\n\n```js\nfunction fn(ms, cb) {\n  setTimeout(cb(null, ms), ms);\n}\n\nvar p = promisify(fn);\n\np(10).then(function(ms) {\n  console.log('delay: %d', ms);\n});\n```\n\n* promisify object\n\n```js\nvar obj = {\n  name: 'hello',\n  show: fun1,\n  tell: fun2,\n  ping: fun3\n};\n\n// promisify all functions (exclude generator function) of the object\npromisify(origin);\n\n// only promisify `show`, `tell`\npromisify(origin, ['show', 'tell']);\n\n// filter function\npromisify(origin, function(key) {\n  return key === 'ping';\n});\n```\n\n### License\nMIT\n\n[npm-img]: https://img.shields.io/npm/v/native-promisify.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/native-promisify\n[travis-img]: https://img.shields.io/travis/coderhaoxin/native-promisify.svg?style=flat-square\n[travis-url]: https://travis-ci.org/coderhaoxin/native-promisify\n[coveralls-img]: https://img.shields.io/coveralls/coderhaoxin/native-promisify.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/coderhaoxin/native-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/native-promisify.svg?style=flat-square\n[david-url]: https://david-dm.org/coderhaoxin/native-promisify\n","_attachments":{},"homepage":"https://github.com/coderhaoxin/native-promisify","bugs":{"url":"https://github.com/coderhaoxin/native-promisify/issues"},"license":"MIT"}