@zerodep/address-street
TypeScript icon, indicating that this package has built-in type declarations

2.0.4 • Public • Published

@zerodep/address-street

version language types license

CodeFactor Known Vulnerabilities

A parser to find where a street name or abbreviation is in a string.

Full documentation is available at the zerodep.app page.

Examples

All @zerodep packages support both ESM and CJS.

import { addressStreet } from '@zerodep/address-street';
// or
const { addressStreet } = require('@zerodep/address-street');

Well Formatted Case

addressStreet('1234 Main St, Los Angeles CA, US 90210');
//  [
//    {
//      streetType: 'ST',
//      source: 'St',
//      ndx: 10,
//      length: 2,
//      sourceIsAbbr: true,
//    },
//  ]

With Multiple Street Names/Abbreviations

addressStreet('36 trail street, edmonton ab');
// [
//   {
//     streetType: 'TR',
//     source: 'trail',
//     ndx: 3,
//     length: 5,
//     sourceIsAbbr: false,
//   },
//   {
//     streetType: 'ST',
//     source: 'street',
//     ndx: 9,
//     length: 6,
//     sourceIsAbbr: false,
//   },
// ]

/@zerodep/address-street/

    Package Sidebar

    Install

    npm i @zerodep/address-street

    Homepage

    zerodep.app

    Weekly Downloads

    5

    Version

    2.0.4

    License

    MIT

    Unpacked Size

    17.3 kB

    Total Files

    7

    Last publish

    Collaborators

    • cdepage