Linux sg77.dns-private.com 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
LiteSpeed
Server IP : 135.181.230.13 & Your IP : 216.73.217.69
Domains :
Cant Read [ /etc/named.conf ]
User : pilasate
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
pilasate /
schoolms /
node_modules /
thenify-all /
Delete
Unzip
Name
Size
Permission
Date
Action
History.md
180
B
-rw-rw-rw-
2025-03-24 11:44
LICENSE
1.07
KB
-rw-rw-rw-
2025-03-24 11:44
README.md
2.45
KB
-rw-rw-rw-
2025-03-24 11:44
index.js
1.95
KB
-rw-rw-rw-
2025-03-24 11:44
package.json
793
B
-rw-rw-rw-
2025-03-24 11:44
Save
Rename
# thenify-all [![NPM version][npm-image]][npm-url] [![Build status][travis-image]][travis-url] [![Test coverage][coveralls-image]][coveralls-url] [![Dependency Status][david-image]][david-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url] [![Gittip][gittip-image]][gittip-url] Promisifies all the selected functions in an object. ```js var thenifyAll = require('thenify-all'); var fs = thenifyAll(require('fs'), {}, [ 'readFile', 'writeFile', ]); fs.readFile(__filename).then(function (buffer) { console.log(buffer.toString()); }); ``` ## API ### var obj = thenifyAll(source, [obj], [methods]) Promisifies all the selected functions in an object. - `source` - the source object for the async functions - `obj` - the destination to set all the promisified methods - `methods` - an array of method names of `source` ### var obj = thenifyAll.withCallback(source, [obj], [methods]) Promisifies all the selected functions in an object and backward compatible with callback. - `source` - the source object for the async functions - `obj` - the destination to set all the promisified methods - `methods` - an array of method names of `source` ### thenifyAll.thenify Exports [thenify](https://github.com/thenables/thenify) this package uses. [gitter-image]: https://badges.gitter.im/thenables/thenify-all.png [gitter-url]: https://gitter.im/thenables/thenify-all [npm-image]: https://img.shields.io/npm/v/thenify-all.svg?style=flat-square [npm-url]: https://npmjs.org/package/thenify-all [github-tag]: http://img.shields.io/github/tag/thenables/thenify-all.svg?style=flat-square [github-url]: https://github.com/thenables/thenify-all/tags [travis-image]: https://img.shields.io/travis/thenables/thenify-all.svg?style=flat-square [travis-url]: https://travis-ci.org/thenables/thenify-all [coveralls-image]: https://img.shields.io/coveralls/thenables/thenify-all.svg?style=flat-square [coveralls-url]: https://coveralls.io/r/thenables/thenify-all [david-image]: http://img.shields.io/david/thenables/thenify-all.svg?style=flat-square [david-url]: https://david-dm.org/thenables/thenify-all [license-image]: http://img.shields.io/npm/l/thenify-all.svg?style=flat-square [license-url]: LICENSE [downloads-image]: http://img.shields.io/npm/dm/thenify-all.svg?style=flat-square [downloads-url]: https://npmjs.org/package/thenify-all [gittip-image]: https://img.shields.io/gratipay/jonathanong.svg?style=flat-square [gittip-url]: https://gratipay.com/jonathanong/