postcodejs
is a nodejs library for query worldwide postcode descriptions
postcodejs
works with nodejs 6.9+
npm install postcodejs -s
MY
: Malaysia
TH
: Thailand
PH
: Philippines
const postcode = require('postcodejs')
postcode.search('MY', '96')
postcode.search('MY', 96)
postcode.postcode('MY', '96507')
postcode.postcode('MY', 96507)
//get states or province
postcode.states('MY')
postcode.statePostcodes ('MY', 'Sarawak')
postcode.statePostcodes ('MY', ['Sarawak', 'Kelantan'])
postcode.statePostcodes ('MY', 'Sarawak', true, false)
postcode.statePostcodes ('MY', ['Sarawak', 'Kelantan'], true, false)
postcode.districtPostcodes('MY', 'Padang Terap')
postcode.cityPostcodes('MY', 'Kangar')
1.1.6
Added Philippines zipcodes!
We welcome pull requests and if you have data of your country we are happy for you to jion us~
This code is distributed under the terms and conditions of the MIT license.