随机中国城市名称
randomCityName 函数,随机生成一个中国的城市名,包括县城,但不包含市区。
Installation
Install my-project with npm
# npm
npm install random-china-city-name
# yarn
yarn add random-china-city-name
Usage/Examples
// ts/esmodule
import { randomCityName} from 'random-china-city-name';
// commonjs
const {randomCityName} = require('random-china-city-name');
let randomName = randomCityName();
console.log(randomName);