# pinyin-initial

> Proxy for JavaScript errors, a better way to handle errors.

Latest version **0.0.2** (published 2023-05-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install pinyin-initial
pnpm add pinyin-initial
yarn add pinyin-initial
bun add pinyin-initial
```

## Health

**Score 30/100 (F)** — status: abandoned.

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

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2023-05-22 |
| First published | 2023-05-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 47.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Horcrux Chen |
| Maintainers | magicismight |
| Keywords | pinyin, chinese, initial, 拼音, 首字母 |

## Links

- npm: https://www.npmjs.com/package/pinyin-initial
- Repository: https://github.com/magicismight/supercharge-js.git#master
- Homepage: https://github.com/magicismight/supercharge-js/tree/master#readme
- Issues: https://github.com/magicismight/supercharge-js/issues
- npm.io page: https://npm.io/package/pinyin-initial

## Recent versions

- 0.0.2 (latest) — 2023-05-22
- 0.0.1 — 2023-05-22

## README

# pinyin-initial

一个简单快速获取汉字拼音首字母的库，不能保证所有汉字全覆盖，不支持多音字。主打一个快、内存占用小！
基本原理就是将所有常用汉字的拼音首字母按照 charCode 枚举到添加一个字符串中，传入的汉字根据 charCode 从字符串中反查出对应的拼音首字母。

## 安装

### npm

```bash
npm install pinyin-initial
```

### yarn

```bash
yarn add pinyin-initial
```

### pnpm

```bash
pnpm add pinyin-initial
```

## 使用

```js
import { getPinyinInitial } from 'pinyin-initial';

console.log(getPinyinInitial('一')); // Y
```

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