1.0.1 • Published 3 years ago

gb3304 v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

GB/T 3304-1991

Names of nationalities of China in romanization with codes 中国各民族名称的罗马字母拼写法和代码

npm version

English | 简体中文

Installation

npm install gb3304

The CDN build is also available on jsDelivr:

Usage

// Using ES modules
import { data, names } from 'gb3304';

// Using CommonJS modules
const { data, names } = require('gb3304');
data.find((item => item.name === '汉族'));
// {name: "汉族", romanization: "Han", code: "HA", digitalCode: "01"}

data.find((item) => item.name === '朝鲜族')
// {name: "朝鲜族", romanization: "Chosen", code: "CS", romanizationInternational: "Korean", digitalCode: "10"}

names.includes('藏族');
// true

License

MIT © Qingrong Ke

References