# 使用 npm 安装 clang-format

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

## 安装

```sh
sudo av install npm:clang-format
```

其他安装命令:

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

- npm (100%):

```sh
npm install -g clang-format
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:clang-format
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/clang-format>
- **版本:** 1.8.0
- **来源摘要:** node wrapper around clang-format
- **主页:** <https://github.com/angular/clang-format#readme>
- **仓库:** <https://github.com/angular/clang-format>
- **上游文档:** <https://github.com/angular/clang-format#readme>
- **许可证:** Apache-2.0
- **源码归档:** <https://registry.npmjs.org/clang-format/-/clang-format-1.8.0.tgz>
- **问题跟踪器:** <https://github.com/angular/clang-format/issues>
- **发布时间:** 2022-04-29T11:22:02.333Z
- **最后更新:** 2022-04-29T11:22:02.333Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- check-clang-format (cli)
- clang-format (cli)
- git-clang-format (cli)

## 依赖

- async
- glob
- resolve

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.8.0
- 管理器更新时间: 2022-04-29
- 本地数据: OK
- 上游仓库: https://github.com/angular/clang-format
- 警告: The package-manager record has not been updated in over a year.
- 信息: No cached GitHub release or tag data was available.

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Latest: 1.8.0
- **Version Count:** 69
- **Maintainers:** mprobst
- **Publisher:** mprobst
- **Integrity:** sha512-pK8gzfu55/lHzIpQ1givIbWfn3eXnU7SfxqIwVgnn5jEM6j4ZJYjpFqFs4iSBPNedzRMmfjYjuQhu657WAXHXw==
- **Shasum:** 7779df1c5ce1bc8aac1b0b02b4e479191ef21d46
- **Unpacked Size:** 8,760,468
- **File Count:** 0
- **Created At:** 2015-03-06T01:27:49.438Z
- **Latest Published At:** 2022-04-29T11:22:02.333Z
- **Modified At:** 2023-06-18T02:17:15.908Z

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

- Debian apt - clang-format - 1:19.0-63: normalized package name match | Debian stable package indexes: clang-format from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Tool to format C/C++/Obj-C code
- Ubuntu apt - clang-format - 1:18.0-59~exp2: normalized package name match | Ubuntu 24.04 LTS package indexes: clang-format from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Tool to format C/C++/Obj-C code
- dnf - git-clang-format - 22.1.7-1.fc45: installed executable or alias match | Fedora Rawhide package metadata: git-clang-format from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Integration of clang-format for git | http://llvm.org


## 相关链接

- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched curated package taxonomy and local package facts.
- [clang-format](https://www.automicvault.com/zh-hans/pkg/brew/clang-format/) - Same normalized package name appears in another local ecosystem. Shared terms: clang, clang-format, format, formatting, git.
- [esformatter](https://www.automicvault.com/zh-hans/pkg/npm/esformatter/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, format, formatter.
- [sass-export](https://www.automicvault.com/zh-hans/pkg/npm/sass-export/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, format, formatting.
- [clang-format](https://www.automicvault.com/zh-hans/pkg/brew/clang-format/) - Same normalized package name exists in another local package ecosystem.

## 来源

- Nucleus package database
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
