Provide javascript postal code validation for all countries.
- Characters " " (space) and "-" (dash) are removed from the passed string
- Case doesn't matter
$ npm test
$ npm run coverage
var postalCodes = require('postal-codes-js');
// All the calls below returns true
postalCodes.validate('bg', '1003');
postalCodes.validate('gb', 'EC1A 1BB');
postalCodes.validate('gb', 'EC1A1BB');
postalCodes.validate('gb', 'EC1A-1BB');
postalCodes.validate('tr', '33150');
postalCodes.validate('us', '22313');
Contributions are more than welcome, just fork the repo and create a pull-request ;)