# 使用 npm 安装 md-to-pdf

查看 md-to-pdf 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install npm:md-to-pdf
```

其他安装命令:

### 便携式和语言管理器

- npm (100%):

```sh
npm install -g md-to-pdf
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:md-to-pdf
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/md-to-pdf>
- **版本:** 5.2.5
- **来源摘要:** CLI tool for converting Markdown files to PDF.
- **主页:** <https://github.com/simonhaenisch/md-to-pdf#readme>
- **仓库:** <https://github.com/simonhaenisch/md-to-pdf>
- **上游文档:** <https://github.com/simonhaenisch/md-to-pdf#readme>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/md-to-pdf/-/md-to-pdf-5.2.5.tgz>
- **问题跟踪器:** <https://github.com/simonhaenisch/md-to-pdf/issues>
- **发布时间:** 2025-11-20T11:21:22.749Z
- **最后更新:** 2025-11-20T11:21:22.749Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- md-to-pdf (cli)
- md2pdf (cli)
- md-to-pdf (别名)

## 依赖

- arg
- chalk
- chokidar
- get-port
- get-stdin
- gray-matter
- highlight.js
- iconv-lite
- listr
- marked
- puppeteer
- semver
- serve-handler

## 构建依赖

- @types/listr
- @types/marked
- @types/semver
- @types/serve-handler
- ava
- canvas
- nyc
- pdfjs-dist
- prettier
- prettier-plugin-organize-imports
- tap-xunit
- ts-node
- tsd
- typescript
- xo

## 安装行为

- post-install 钩子: 未定义
- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 5.2.5
- 管理器更新时间: 2025-11-20
- 本地数据: OK
- 上游仓库: https://github.com/simonhaenisch/md-to-pdf
- notice: The package-manager record has not changed recently.
- 信息: No cached GitHub release or tag data was available.

## 安全说明

没有找到 md-to-pdf 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Latest: 5.2.5, Next: 3.0.0-pre.1
- **Version Count:** 48
- **Maintainers:** simonhaenisch
- **Author:** Simon Haenisch
- **Publisher:** simonhaenisch
- **Engines:** Node: >=12.0
- **Integrity:** sha512-TG8TgDM0PmEwCldR6j/1QP9gBElLL3DSn5ID8P3bEXEl3Y2zHOUSyszHzabWnDNxklRjKbi40ybli8YQJ5Ym5w==
- **Shasum:** aa67e866fbf24d46e4d5e62b629fab61baa3d028
- **Unpacked Size:** 56,403
- **File Count:** 0
- **Created At:** 2016-10-16T08:56:57.947Z
- **Latest Published At:** 2025-11-20T11:21:22.749Z
- **Modified At:** 2025-11-20T11:21:22.951Z

## 其他软件包管理器记录

- Nix - md2pdf: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/md/md2pdf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched curated package taxonomy and local package facts.
- [markit-ai](https://pkg.so/zh-hans/npm/markit-ai/) - Both packages work with overlapping file formats or content types. Shared terms: chalk, cli, conversion, data, document.
- [markdown-docx](https://pkg.so/zh-hans/npm/markdown-docx/) - Both packages work with overlapping file formats or content types. Shared terms: cli, conversion, data, document, document-conversion.
- [mammoth](https://pkg.so/zh-hans/npm/mammoth/) - Both packages work with overlapping file formats or content types. Shared terms: cli, conversion, data, document, document-conversion.

## 来源

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
