moxy-address

    0.5.4 • Public • Published

    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
    

    Install

    npm i moxy-address

    DownloadsWeekly Downloads

    1

    Version

    0.5.4

    License

    Apache-2.0

    Unpacked Size

    27.6 kB

    Total Files

    9

    Last publish

    Collaborators

    • dancmox