> For the complete documentation index, see [llms.txt](https://sunzsh.gitbook.io/xiaoshan.bug/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sunzsh.gitbook.io/xiaoshan.bug/nodejs-sui-ji-sheng-cheng-guo-nei-di-zhi.md).

# nodeJs随机生成国内地址

* 抖音：<https://v.douyin.com/hckdfur/>
* B站：<https://www.bilibili.com/video/BV1yM4y1w7Ct/>

> 工具地址：<https://github.com/moonrailgun/chinese-address-generator>

给大家推荐一个随机生成

国内地址的（nodeJs）类库

比如这样我先生成100个

执行一下

当然了这些地址都是假地址

用于咱们当测试数据是完全没有问题

这个类库呢就是这个

moonrailgun/chinese-address-generator

然后呢他生成分五种

一种是仅生成这个第一级（就是省）

然后第二级

第3级

第四级... 刚才用的是完整的带门牌号的
