# prettify-pinyin

> Turns 'ni3 hao3' into 'nǐ hǎo' etc

Latest version **0.1.5** (published 2014-10-24) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2014-10-24 |
| First published | 2014-10-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | John Heroy |
| Maintainers | johnheroy |
| Keywords | Chinese, 汉字, pinyin, 拼音 |

## Links

- npm: https://www.npmjs.com/package/prettify-pinyin
- Repository: https://github.com/johnheroy/prettify-pinyin
- Issues: https://github.com/johnheroy/prettify-pinyin/issues
- npm.io page: https://npm.io/package/prettify-pinyin

## Recent versions

- 0.1.5 (latest) — 2014-10-24
- 0.1.4 — 2014-10-13
- 0.1.3 — 2014-10-13
- 0.1.2 — 2014-10-13
- 0.1.1 — 2014-10-13
- 0.1.0 — 2014-10-13

## README

# prettify-pinyin [![Build Status](https://travis-ci.org/johnheroy/prettify-pinyin.svg?branch=master)](https://travis-ci.org/johnheroy/prettify-pinyin) [![Coverage Status](https://img.shields.io/coveralls/johnheroy/prettify-pinyin.svg)](https://coveralls.io/r/johnheroy/prettify-pinyin)

prettify-pinyin will take your pinyin written with letters and numbers (i.e. 'ni3 hao3') and add tone marks, so you don't have to. I am using this module to show pretty formats for the pronunciation entries for the CC-CEDICT dictionary which is written with letters and numbers.

## Usage

```
var pinyin = require('prettify-pinyin');

pinyin.prettify('ni3 hao3');    // => 'nǐ hǎo'
pinyin.prettify('zhong1 guo2'); // => 'zhōng guó'

```

## License

MIT

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