/js-zipcode

Postleitzahlsuche für die Schweiz / zipcode lookup for swiss area (offline)

Primary LanguageJavaScriptMIT LicenseMIT

js-zipcode

Postleitzahlsuche für die Schweiz / zipcode lookup for swiss area (offline)

How to

const ZipLookup = require('js-zipcode');
const LookupService = new ZipLookup();
// the return value is always  an array
const result = LookupService.lookup(8000)[0]; 
assert.equal(result.zip, 8000);