Leask / China-Districts

Make JSON Tree of China Districts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

China-Districts

Make JSON Tree of China Districts.

https://www.npmjs.com/package/china-districts

Node Model

{
    id        : [string],
    name      : [string],
    districts : [array]
}

How to use?

npm install china-districts
var chinaDistricts = require('china-districts');
console.log(chinaDistricts);

Contribution

$ git clone https://github.com/Leask/China-Districts.git
# update the source data in districts.txt
$ node make.js
$ ls districts.js districts.json districts.min.json
# pull request

Data Source

About

Make JSON Tree of China Districts

License:MIT License


Languages

Language:JavaScript 100.0%