# 使用 npm 安装 sql-formatter

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

## 安装

```sh
sudo av install npm:sql-formatter
```

其他安装命令:

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

- npm (100%):

```sh
npm install -g sql-formatter
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:sql-formatter
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/sql-formatter>
- **版本:** 15.8.2
- **来源摘要:** Format whitespace in a SQL query to make it more readable
- **仓库:** <https://github.com/sql-formatter-org/sql-formatter>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/sql-formatter/-/sql-formatter-15.8.2.tgz>
- **问题跟踪器:** <https://github.com/sql-formatter-org/sql-formatter/issues>
- **发布时间:** 2026-06-21T10:50:16.756Z
- **最后更新:** 2026-06-21T10:50:16.756Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- sql-formatter (cli)

## 依赖

- argparse
- nearley

## 构建依赖

- @babel/cli
- @babel/core
- @babel/plugin-proposal-class-properties
- @babel/preset-env
- @babel/preset-typescript
- @jest/globals
- @types/babel__core
- @types/jest
- @types/nearley
- @types/node
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- babel-eslint
- babel-jest
- babel-loader
- babel-plugin-add-module-exports
- babel-plugin-inline-import
- dedent-js
- eslint
- eslint-config-airbnb-base
- eslint-config-airbnb-typescript
- eslint-config-prettier
- eslint-plugin-import
- eslint-plugin-prettier
- jest
- npm-run-all
- prettier
- release-it
- release-it-pnpm
- rimraf
- ts-jest
- ts-loader
- typescript
- webpack
- webpack-cli
- webpack-merge

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 15.8.2
- 管理器更新时间: 2026-06-21
- 本地数据: OK
- 上游仓库: https://github.com/sql-formatter-org/sql-formatter
- 信息: No cached GitHub release or tag data was available.

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Beta: 15.5.0-beta.2, Beta1: 9.0.0-beta1, Beta2: 9.0.0-beta2, Beta3: 9.0.0-beta3, Beta4: 9.0.0-beta4, Latest: 15.8.2
- **Version Count:** 177
- **Maintainers:** nene, inferrinizzard
- **Publisher:** nene
- **Integrity:** sha512-kTYRg5FIcvsDtYUG2Qn9pYT6xKwiLJN5TTIvc5Mur6hIg4pSfdpHu8Yyu5bqESLHnVM3mXzD446cb2+uEaKZXg==
- **Shasum:** ac0684864b3ac850e455dc915adbca78dd51aeb8
- **Unpacked Size:** 3,116,487
- **File Count:** 0
- **Created At:** 2016-09-14T13:11:06.027Z
- **Latest Published At:** 2026-06-21T10:50:16.756Z
- **Modified At:** 2026-06-21T10:50:16.860Z

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

- Nix - sql-formatter: normalized package name match | nixpkgs package indexes: pkgs/by-name/sq/sql-formatter/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.
- [sql-formatter](https://pkg.so/zh-hans/brew/sql-formatter/) - Same normalized package name appears in another local ecosystem. Shared terms: cli, developer, developer-tools, formatter, query.
- [sql-lint](https://pkg.so/zh-hans/brew/sql-lint/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, database, developer, developer-tools, mysql.
- [sql-translator](https://pkg.so/zh-hans/brew/sql-translator/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, database, developer, developer-tools, more.
- [sql-formatter](https://pkg.so/zh-hans/brew/sql-formatter/) - Same normalized package name exists in another local package ecosystem.

## 来源

- 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
