# Install pinyin with npm

汉语拼音转换工具。. Version 4.0.0 via npm; verified 2025-05-21.

## Install

```sh
sudo av install npm:pinyin
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g pinyin
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:pinyin
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/pinyin>
- **Version:** 4.0.0
- **Source summary:** 汉语拼音转换工具。
- **Homepage:** <https://pinyin.js.org/>
- **Repository:** <https://github.com/hotoo/pinyin>
- **Upstream docs:** <https://pinyin.js.org/>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/pinyin/-/pinyin-4.0.0.tgz>
- **Issue tracker:** <https://github.com/hotoo/pinyin/issues>
- **Published:** 2025-05-21T17:57:54.814Z
- **Last updated:** 2025-05-21T17:57:54.814Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- pinyin (cli)
- pinyin (alias)

## Dependencies

- commander

## Build dependencies

- @babel/preset-env
- @babel/preset-typescript
- @rollup/plugin-commonjs
- @rollup/plugin-json
- @rollup/plugin-node-resolve
- @textea/json-viewer
- @types/jest
- @types/node
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- aurl
- aws-sdk
- beautify-benchmark
- benchmark
- dumi
- eslint
- eslint-config-prettier
- eslint-import-resolver-typescript
- eslint-plugin-prettier
- gh-pages
- jest
- mock-aws-s3
- nock
- npx
- prettier
- request
- rollup
- rollup-plugin-alias
- rollup-plugin-cleanup
- rollup-plugin-terser
- rollup-plugin-typescript2
- ts-node
- tsup
- typescript

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 4.0.0
- Package-manager updated: 2025-05-21
- Local data: ok
- Upstream repository: https://github.com/hotoo/pinyin
- warning: The package-manager record has not been updated in over a year.
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for pinyin. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Alpha: 4.0.0-alpha.3, Latest: 4.0.0
- **Version Count:** 51
- **Maintainers:** hotoo
- **Author:** 闲耘
- **Publisher:** hotoo
- **Engines:** Install Node: ^18.0.0
- **Peer Dependencies:** @node-rs/jieba, nodejieba, segmentit
- **Integrity:** sha512-vHpV5K+vpp6XUUpZNGRDuHoN+1xcmieM3EWlH4QjSX2kkpG/gVOwpqwV9EOJ9x9c9UERFKeLml5XVSukE/PLgQ==
- **Shasum:** 9c15fd9d45c08b6813221fc602f77759429bfa4f
- **Unpacked Size:** 61,897,172
- **File Count:** 0
- **Created At:** 2012-02-15T04:05:35.814Z
- **Latest Published At:** 2025-05-21T17:57:54.814Z
- **Modified At:** 2025-05-21T17:57:54.977Z


## Related links

- [Text processing packages](https://pkg.so/text-processing-tools/) - Matched curated package taxonomy and local package facts.
- [office-addin-usage-data](https://pkg.so/npm/office-addin-usage-data/) - Local package facts share a topical domain. Shared terms: cli, cli-tools, commander, developer, developer-tools.
- [opt-cli](https://pkg.so/npm/opt-cli/) - Local package facts share a topical domain. Shared terms: cli, cli-tools, commander, developer, developer-tools.
- [portastic](https://pkg.so/npm/portastic/) - Local package facts share a topical domain. Shared terms: cli, cli-tools, commander, developer, developer-tools.

## Sources

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