# thenify-all 中文文档

规范地址：https://npmcn.com/package/thenify-all/

版本：1\.6\.0
npm 元数据更新时间：2023-11-07T07:17:11.586Z
中文译文更新时间：2026-11-05T16:25:39.095Z
软件包许可：MIT

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/thenify-all
原文对照：https://npmcn.com/package/thenify-all/?lang=original
项目主页：https://github.com/thenables/thenify-all
源码仓库：https://github.com/thenables/thenify-all

## 关键信息（来自 npm 元数据）

- TypeScript 类型：未声明
- Node.js 要求：\>=0\.8
- 运行依赖：1 个
- 首次发布：2014-12-17T06:35:41.052Z
- 最新版本发布：2015-01-10T17:24:24.668Z
- 近 30 天下载量：211457346（2026-10-05 至 2026-11-03，npm 官方下载统计）
- 已发布版本数：9（近 12 个月 0 个）

## 中文简介

显示对象中选中的所有函数

## 安装

```sh
npm install thenify-all
```

也可以使用：`pnpm add thenify-all`、`yarn add thenify-all`、`bun add thenify-all`

## README

# ưμ㼯a

[![NPM version](https://img.shields.io/npm/v/thenify-all.svg?style=flat-square)](https://npmjs.org/package/thenify-all) [![Build status](https://img.shields.io/travis/thenables/thenify-all.svg?style=flat-square)](https://travis-ci.org/thenables/thenify-all) [![Test coverage](https://img.shields.io/coveralls/thenables/thenify-all.svg?style=flat-square)](https://coveralls.io/r/thenables/thenify-all) [![Dependency Status](http://img.shields.io/david/thenables/thenify-all.svg?style=flat-square)](https://david-dm.org/thenables/thenify-all) [![License](http://img.shields.io/npm/l/thenify-all.svg?style=flat-square)](https://npmcn.com/package/thenify-all/LICENSE) [![Downloads](http://img.shields.io/npm/dm/thenify-all.svg?style=flat-square)](https://npmjs.org/package/thenify-all) [![Gittip](https://img.shields.io/gratipay/jonathanong.svg?style=flat-square)](https://gratipay.com/jonathanong/)

将对象中所有选中的函数复制出来.

```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 = yersy All(来源,\[obj\],\[方法\])

将对象中所有选中的函数复制出来.

-   `source` - 同步函数的源对象
-   `obj` - 确定所有混合方法的目的地
-   `methods` - 方法名称的系列 `source`

### var obj = wirify All. With Callback(出自, \[obj\], \[方法\])

将对象中选择的所有函数和与回调相容的后向函数进行Promision.

-   `source` - 同步函数的源对象
-   `obj` - 确定所有混合方法的目的地
-   `methods` - 方法名称的系列 `source`

### 然后将所有。 指针

出口 [指针](https://github.com/thenables/thenify) 此软件包使用 .

## 常见问题

### thenify-all 是什么？

显示对象中选中的所有函数

### 如何安装 thenify-all？

在项目目录运行 npm install thenify-all，或使用 pnpm add / yarn add / bun add。

### thenify-all 支持 TypeScript 吗？

该包的 package\.json 没有声明类型入口。需要类型提示时，可以在 npm 上查找社区维护的 @types/thenify-all 是否存在。

### thenify-all 需要什么版本的 Node\.js？

package\.json 的 engines 字段要求 Node\.js \>=0\.8。版本不符时 npm 默认只给出警告，开启 engine-strict 后会拒绝安装。

### thenify-all 可以商用吗？

thenify-all 使用 MIT 许可。宽松许可：允许商业使用、修改和再分发，通常只需在分发时保留原版权与许可声明。以上为概括，不构成法律意见，请以许可原文为准。

### thenify-all 的下载量有多少？

根据 npm 官方下载统计，thenify-all 在 2026/10/05 – 2026/11/03 这 30 天内被下载 211,457,346 次，日均约 7,048,578 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### thenify-all 还在维护吗？

最新版本 1\.6\.0 发布于 2015/01/11（11 年前）；至今共发布 9 个版本，其中过去 12 个月发布了 0 个；首次发布于 2014/12/17。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

