{"id":13526733,"url":"https://github.com/thenables/thenify-all","last_synced_at":"2025-04-06T01:10:00.092Z","repository":{"id":24712906,"uuid":"28124637","full_name":"thenables/thenify-all","owner":"thenables","description":"Promisifies all the selected functions in an object","archived":false,"fork":false,"pushed_at":"2020-12-10T14:07:10.000Z","size":11,"stargazers_count":57,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T00:09:01.556Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thenables.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-17T06:34:25.000Z","updated_at":"2023-12-20T11:22:53.000Z","dependencies_parsed_at":"2022-08-17T17:05:14.474Z","dependency_job_id":null,"html_url":"https://github.com/thenables/thenify-all","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenables%2Fthenify-all","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenables%2Fthenify-all/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenables%2Fthenify-all/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenables%2Fthenify-all/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thenables","download_url":"https://codeload.github.com/thenables/thenify-all/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419861,"owners_count":20936012,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T06:01:33.884Z","updated_at":"2025-04-06T01:10:00.072Z","avatar_url":"https://github.com/thenables.png","language":"JavaScript","funding_links":[],"categories":["Repository"],"sub_categories":["Control flow"],"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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthenables%2Fthenify-all","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthenables%2Fthenify-all","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthenables%2Fthenify-all/lists"}