Nothing Particularly Magnificent

npm

Bring the best of OSS JavaScript development to your projects with npm Orgs - private packages & team management tools.Learn more »

norway-postal-codes

3.0.0 • Public • Published

Norway Postal Codes Build Status

Various UTF8 alternative formats to the default ansi tab-delimited postal code registry provided by bring.no.

Norwegian: Postnummerregisteret inneholder alle postnummer i Norge som brukes til adressering av post.

Downloads

Last updated 2018-11-08

Demo

See the demo for an example on how to auto-complete city from postal code.
Which is a really good UX feature you should make use of.

Getting started

Even though all converted files are provided here, you might want to do it yourself.

You'll need Node.js, then cd into this folder and npm install.

Run npm run make to fetch and convert the latest registry, or you can supply a file path npm run make postnummerregister_ansi.txt to convert a local file (make sure it's the ANSI version).

You can also use it as a Node module. Just install it npm install norway-postal-codes and then require it in your code:

const postalCodes = require('norway-postal-codes');
 
console.log(postalCodes['1613']);
// FREDRIKSTAD

install

npm i norway-postal-codes

Downloadsweekly downloads

7

version

3.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability