# @11ty/eleventy-plugin-directory-output 中文文档

规范地址：https://npmcn.com/package/%4011ty/eleventy-plugin-directory-output/

版本：1\.0\.2
npm 元数据更新时间：2025-08-26T22:37:22.675Z
中文译文更新时间：2026-11-06T13:56:27.812Z
软件包许可：MIT

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

原始 npm 页面：https://www.npmjs.com/package/%4011ty/eleventy-plugin-directory-output
原文对照：https://npmcn.com/package/%4011ty/eleventy-plugin-directory-output/?lang=original
项目主页：https://www.11ty.dev/docs/plugins/directory-output/
源码仓库：https://github.com/11ty/eleventy-plugin-directory-output

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

- 包体积（解压后）：13.7 kB，4 个文件
- 模块格式：CommonJS
- TypeScript 类型：未声明
- 运行依赖：2 个
- 首次发布：2022-01-16T21:27:29.042Z
- 最新版本发布：2025-08-26T22:37:22.446Z
- 近 30 天下载量：3071（2026-10-04 至 2026-11-02，npm 官方下载统计）
- 已发布版本数：3（近 12 个月 0 个）

## 中文简介

组合和排序 11ty 按目录排列的动词输出( 并显示文件大小和基准)

## 安装

```sh
npm install @11ty/eleventy-plugin-directory-output
```

也可以使用：`pnpm add @11ty/eleventy-plugin-directory-output`、`yarn add @11ty/eleventy-plugin-directory-output`、`bun add @11ty/eleventy-plugin-directory-output`

## README

![eleventy Logo](https://www.11ty.dev/img/logo-github.png)

# 11-插值-间接产出

组合和排序 [十一号](https://github.com/11ty/eleventy)其动词输出按目录(并显示有基准的文件大小).

样本输出 `eleventy-base-blog`数字 :

```
> eleventy-base-blog@6.0.0 build
> eleventy

↘ _site/                               --                           --       --
  → about/index.html                   about/index.md            1.8kB    2.7ms
  ↘ feed/                              --                           --       --
    • .htaccess                        feed/htaccess.njk         0.1kB    0.2ms
    • feed.json                        feed/json.njk           106.8kB   17.3ms
    • feed.xml                         feed/feed.njk           109.8kB    9.8ms
  → page-list/index.html               page-list.njk             3.2kB    1.1ms
  ↘ posts/                             --                           --       --
    → firstpost/index.html             posts/firstpost.md        3.5kB    1.0ms
    → fourthpost/index.html            posts/fourthpost.md     101.0kB   27.2ms
    → secondpost/index.html            posts/secondpost.md       3.2kB    5.6ms
    → thirdpost/index.html             posts/thirdpost.md        4.5kB    7.5ms
    • index.html                       archive.njk               3.0kB   13.7ms
  ↘ tags/                              --                           --       --
    → another-tag/index.html           tags.njk                  2.1kB    0.9ms
    → number-2/index.html              tags.njk                  2.1kB    0.4ms
    → posts-with-two-tags/index.html   tags.njk                  2.3kB    0.2ms
    → second-tag/index.html            tags.njk                  2.5kB    0.5ms
    • index.html                       tags-list.njk             2.0kB    0.4ms
  • 404.html                           404.md                    1.9kB    0.4ms
  • index.html                         index.njk                 2.8kB    1.7ms
  • sitemap.xml                        sitemap.xml.njk           1.4kB    1.3ms
[11ty] Copied 3 files / Wrote 18 files in 0.16 seconds (8.9ms each, v1.0.1)
```

## [全数 `eleventy-plugin-directory-output` 文档在 11ty.dev](https://www.11ty.dev/docs/plugins/directory-output/)。 。 。 .

-   _这是一个插件,用于 [11个静态场地发电机](https://www.11ty.dev/)。 。 。 ._
-   再找点 [十一个插件](https://www.11ty.dev/docs/plugins/)。 。 。 .
-   请坐 [十一号在吉打](https://github.com/11ty/eleventy/),跟着 [@ eleven ty (帮助)](https://twitter.com/eleven_ty) 在推特上,并支持 [开放集体11号](https://opencollective.com/11ty)

[![npm Version](https://img.shields.io/npm/v/@11ty/eleventy-plugin-directory-output.svg?style=for-the-badge)](https://www.npmjs.com/package/@11ty/eleventy-plugin-directory-output) [![GitHub issues](https://img.shields.io/github/issues/11ty/eleventy-plugin-directory-output.svg?style=for-the-badge)](https://github.com/11ty/eleventy-plugin-directory-output/issues)

## 安装

```
npm install @11ty/eleventy-plugin-directory-output
```

_[全数 `eleventy-plugin-directory-output` 文档在 11ty.dev](https://www.11ty.dev/docs/plugins/directory-output/)。 。 。 ._

## 常见问题

### @11ty/eleventy-plugin-directory-output 是什么？

组合和排序 11ty 按目录排列的动词输出\( 并显示文件大小和基准\)

### 如何安装 @11ty/eleventy-plugin-directory-output？

在项目目录运行 npm install @11ty/eleventy-plugin-directory-output，或使用 pnpm add / yarn add / bun add。

### @11ty/eleventy-plugin-directory-output 支持 TypeScript 吗？

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

### @11ty/eleventy-plugin-directory-output 支持 ESM 还是 CommonJS？

以 CommonJS 形式发布，可以直接 require\(\)；在 ES Module 项目中也可以用 import 引入（Node\.js 会把 module\.exports 作为默认导出）。

### @11ty/eleventy-plugin-directory-output 可以商用吗？

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

### @11ty/eleventy-plugin-directory-output 的下载量有多少？

根据 npm 官方下载统计，@11ty/eleventy-plugin-directory-output 在 2026/10/04 – 2026/11/02 这 30 天内被下载 3,071 次，日均约 102 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### @11ty/eleventy-plugin-directory-output 还在维护吗？

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

