@11ty/eleventy-plugin-directory-output

中文文档
1.0.2发布于 2025/08/27MITCommonJS近 30 天下载 3071

Group and sort Eleventy’s verbose output by directory (and show file size with benchmarks)

原始使用文档

eleventy Logo

eleventy-plugin-directory-output

Group and sort Eleventy’s verbose output by directory (and show file size with benchmarks).

Sample output from eleventy-base-blog:

> [email protected] 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)

The full eleventy-plugin-directory-output documentation is on 11ty.dev.

npm Version GitHub issues

Installation

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

The full eleventy-plugin-directory-output documentation is on 11ty.dev.

版本与发布记录

@11ty/eleventy-plugin-directory-output 共发布 3 个版本,首次发布于 2022/01/17;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.0.2latest2025/08/271.2 年前
1.0.12022/01/184 年前
1.0.02022/01/174 年前

关于 @11ty/eleventy-plugin-directory-output 的常见问题

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

Group and sort Eleventy’s verbose output by directory (and show file size with benchmarks)

如何安装 @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 和提交记录判断。