An open API service indexing awesome lists of open source software.

https://github.com/jakexchan/cn-address-convert

A program for convert the china address data to a tree structure.
https://github.com/jakexchan/cn-address-convert

china-area-data element-ui vux

Last synced: 3 months ago
JSON representation

A program for convert the china address data to a tree structure.

Awesome Lists containing this project

README

        

# cn-address-convert

Convert the Chinese address data to tree structure from [vux datas](https://github.com/airyland/vux/tree/v2/src/datas) and use it on element-ui `Cascader` component.

![Use case](./images/case.png)

## Run

```
node ./convert.js -s ./china_address_v4.json -o china_address_v4_output.json
```

- `-s`: Data source
- `-o`: Output file