Skip to content

maasglobal/address-encoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5d8c7f0 · Mar 8, 2022

History

21 Commits
Mar 8, 2022
Apr 26, 2017
Jan 17, 2022
Jan 17, 2022
Jan 17, 2022
Jan 17, 2022
Feb 14, 2022
Jan 17, 2022
Feb 14, 2022
Feb 14, 2022
Jan 17, 2022
Jan 17, 2022

Repository files navigation

MaaS Address Encoder

Publish Package

codecov

Install

npm install address-encoder

Description

Encode and decode MaaS's address schemas

The format: country:Finland|city:Helsinki|zipCode:00100|streetName:Ludviginkatu|streetNumber:6

Will be turned into the following object after decoding

{
  country: "Finland",
  city: "Helsinki",
  streetName: "Ludviginkatu",
  streetNumber: "6"
}

Current supports

  • Required fields: requires different fields to have non-empty value inside the encoded string
  • Decoding the format