# iso-639-1-zh

> Chinese name for iso-639-1 languages

Latest version **2.0.4** (published 2018-01-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install iso-639-1-zh
pnpm add iso-639-1-zh
yarn add iso-639-1-zh
bun add iso-639-1-zh
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.4 |
| Published | 2018-01-22 |
| First published | 2016-04-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | meikidd |
| Maintainers | meikidd |
| Keywords | iso-639-1, language |

## Links

- npm: https://www.npmjs.com/package/iso-639-1-zh
- Repository: https://github.com/meikidd/iso-639-1-zh
- Homepage: https://github.com/meikidd/iso-639-1-zh#readme
- Issues: https://github.com/meikidd/iso-639-1-zh/issues
- npm.io page: https://npm.io/package/iso-639-1-zh

## Dependencies (1)

- [iso-639-1](https://npm.io/package/iso-639-1.md) ^2.0.0

## Recent versions

- 2.0.4 (latest) — 2018-01-22
- 2.0.3 — 2018-01-18
- 2.0.2 — 2018-01-18
- 2.0.0 — 2018-01-17
- 1.0.4 — 2017-11-27
- 1.0.3 — 2017-01-09
- 1.0.2 — 2016-05-03
- 1.0.1 — 2016-05-01
- 1.0.0 — 2016-05-01
- 0.2.0 — 2016-04-30
- 0.1.0 — 2016-04-25

## README

# iso-639-1-zh

[![NPM Version][npm-image]][npm-url]
[![Build Status][travis-image]][travis-url]
[![Download Count][download-url]][npm-url]

[travis-image]: https://travis-ci.org/meikidd/iso-639-1-zh.svg?branch=master
[travis-url]: https://travis-ci.org/meikidd/iso-639-1-zh
[npm-image]: https://img.shields.io/npm/v/iso-639-1-zh.svg?style=flat-square
[npm-url]: https://npmjs.org/package/iso-639-1-zh
[download-url]: https://img.shields.io/npm/dt/iso-639-1-zh.svg?style=flat-square

Chinese name for iso-639-1 languages.   
各国语言的中文名称. 例如：zh - 中文; en - 英语; es - 西班牙语;

## Installation

```
npm install iso-639-1-zh
```

## Methods


### getZhName(code)
  - @param code {string}
  - @return {string}

Lookup language chinese name by code

### getAllZhNames()
  - @return {array}

Get array of all language chinese names


## Usage

```
var ISO639ZH = require('./iso-639-1-zh')

console.log(ISO639ZH.getZhName('zh')) // '中文'
console.log(ISO639ZH.getZhName('es')) // '西班牙语'
console.log(ISO639ZH.getLanguages(['en', 'es']))
// [{code:'en',name:'English',nativeName:'English',zhName:'英语'},{code:'es',name:'Spanish',nativeName:'Español',zhName:'西班牙语'}]
```
除此之外，还继承了 [iso-639-1](https://github.com/meikidd/iso-639-1) 模块的所有功能

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