A JS library to convert between Chinese address and postcode.
npm install chinese-postcode
npm install chinese-postcode
`
Usage
`
var pc = require('chinese-postcode');
// search addresses by postcode
var addresses = pc.getAddress('100093');
// search postcode by address
var postcode = pc.getPostcode({
province: '湖南',
city: '怀化市',
county: '靖州苗族侗族自治县'
});
`
Contribution
Clone the repo:
`
git clone https://github.com/xtu/chinese-postcode.git
`
Run tests:
`
npm test
``