1.3.0 • Published 3 years ago

norpcodes v1.3.0

Weekly downloads
4
License
ISC
Repository
github
Last release
3 years ago

Search up Norwegian postal codes

installation

npm install norpcodes

import norpcodes from 'norpcodes'; or if using CommonJS const norpcodes = require('norpcodes');

Usage:

To verify that the postal code is valid: norpcodes.validPostalCode('0001)

To find the name/city the postal code belongs to: norpcodes.getPostalCodeName('0001)

To find the county name the postal code belongs to: norpcodes.getPostalCodeCountyName('0001)

To find the county code: norpcodes.getPostalCodeCountyNumber('0001)

To find the county category: norpcodes.getPostalCodeCountyCategory('0001)

To find all the postal codes for a specific location: norpcodes.getPostalCode('SEM')