Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 890 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 890 Bytes

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