# @lazy-cjk/zh2num

> 將漢字轉換成數字 Parse Chinese/Japanese numeric strings to integer

Latest version **1.0.5** (published 2026-09-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install @lazy-cjk/zh2num
pnpm add @lazy-cjk/zh2num
yarn add @lazy-cjk/zh2num
bun add @lazy-cjk/zh2num
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2026-09-11 |
| First published | 2024-01-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 62.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 26 |
| Author | bluelovers |
| Maintainers | bluelovers |
| Keywords | zh2num, num2zh, number, chinese, chinese number, create-by-yarn-tool, create-by-tsdx |

## Links

- npm: https://www.npmjs.com/package/@lazy-cjk/zh2num
- Repository: https://github.com/bluelovers/ws-string
- Homepage: https://github.com/bluelovers/ws-string/tree/master/packages/@lazy-cjk/zh2num#readme
- Issues: https://github.com/bluelovers/ws-string/issues
- npm.io page: https://npm.io/package/@lazy-cjk/zh2num

## Dependencies (2)

- [chinese-parseint2](https://npm.io/package/chinese-parseint2.md) ^2.0.12
- [@lazy-cjk/japanese](https://npm.io/package/@lazy-cjk/japanese.md) ^1.2.39

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2026-09-11
- 1.0.4 — 2026-09-11
- 1.0.3 — 2026-09-11
- 1.0.2 — 2024-02-03
- 1.0.1 — 2024-01-29

## README

# @lazy-cjk/zh2num

> 將漢字轉換成數字 Parse Chinese/Japanese numeric strings to integer

## 安裝 (Installation)

```bash
# 使用 yarn / Using yarn
yarn add @lazy-cjk/zh2num

# 使用 yarn-tool / Using yarn-tool
yarn-tool add @lazy-cjk/zh2num
# yt 是 yarn-tool 的別名 / yt is an alias for yarn-tool
yt add @lazy-cjk/zh2num

# 使用 pnpm / Using pnpm
pnpm add @lazy-cjk/zh2num

# 使用 npm / Using npm
npm install @lazy-cjk/zh2num
```

---
_Source: https://npm.io/package/@lazy-cjk/zh2num · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
