@ftlab/chinese-generator
v0.1.6
Published
```console npm i @ftlab/chinese-generator --save ```
Downloads
3
Maintainers
Keywords
Readme
Installation
npm i @ftlab/chinese-generator --save
Usage
javascript
const Generator = require('@ftlab/chinese-generator/core/index.es5').default;
// create chinese name
const cn = Generator.random();
// create chinese address
const address = Generator.generateLevel4();
// modify chinese address using pinyin
const addressFull = Generator.abbreviation(address.region);
typescript
import {ChineseGenerator} from "@ftlab/chinese-generator";
// create chinese name
const cn = ChineseGenerator.random();
// create chinese address
const address = ChineseGenerator.generateLevel4();
// modify chinese address using pinyin
const addressFull = ChineseGenerator.abbreviation(address.region);