norpcodes
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

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')

Package Sidebar

Install

npm i norpcodes

Weekly Downloads

0

Version

1.3.0

License

ISC

Unpacked Size

1.37 MB

Total Files

12

Last publish

Collaborators

  • devalo