moxy-address
v0.5.4
Published
Moxy Address - Parse US Postal addresses
Downloads
17
Readme
moxy-address
Parse a US Postal Address
Usage
const MoxyAddress = require('moxy-address')
const address = MoxyAddress.parse(
'1135 Mountain View Dr, APT #5, Olympia WA, 98510',
)
Result:
{
"city": "Olympia",
"company": "",
"name": "",
"state": "WA",
"street1": "1135 Mountain View Dr",
"street2": "APT #5",
"zip": "98510"
}
const MoxyAddress = require('moxy-address')
const address = MoxyAddress.format(
'John Doe, 1135 Mountain View Dr, APT #5, Olympia WA, 98510',
)
Result:
John Doe
1135 Mountain View Dr
APT #5
Olympia WA, 98510