0.0.5 • Published 9 years ago

china-districts v0.0.5

Weekly downloads
10
License
-
Repository
-
Last release
9 years ago

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