Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

telemark/tfk-utils-fix-address-for-seeiendom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status js-standard-style

tfk-utils-fix-address-for-seeiendom

Formats an address from dsf so seeiendom understands it. dsf will typically return Dream Street 48 D, 1732 Høtten and seeiendom needs Dream Street 48D, 1732 Høtten This module removes the whitespace between house number and house letter.

Installation

From npm

$ npm install tfk-utils-fix-address-for-seeiendom

From GitHub

$ git clone git@github.com:telemark/tfk-utils-fix-address-for-seeiendom.git

cd into directory and install dependencies

$ npm install

Usage

const fixAddress = require('tfk-utils-fix-address-for-seeiendom')
const address = 'Dream Street 48 D, 1732 Høtten'

console.log(fixAddress(address))

//=> Dream Street 48D, 1732 Høtten

License

MIT