2.3.4 • Published 2 months ago

@zerodep/address-secondary v2.3.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@zerodep/address-secondary

version language types license

CodeFactor Known Vulnerabilities

A parser to find where a secondary 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 { addressSecondary } from '@zerodep/address-secondary';
// or
const { addressSecondary } = require('@zerodep/address-secondary');

Use Case

addressSecondary('basement 1234 Main Street East Los Angeles CA, US');
//  [
//    {
//      secondary: 'BSMT',
//      source: 'basement',
//      ndx: 0,
//      length: 8,
//      hasUnit: false,
//    },
//  ]

addressSecondary('office 1234 Main Street East ph 4 Los Angeles CA, US');
// [
//   {
//     secondary: 'OFC',
//     source: 'office',
//     ndx: 0,
//     length: 6,
//     hasUnit: true,
//   },
//   {
//     secondary: 'PH',
//     source: 'ph',
//     ndx: 29,
//     length: 2,
//     hasUnit: true,
//   },
// ]
2.3.4

2 months ago

2.3.3

2 months ago

2.3.2

2 months ago

2.3.1

7 months ago

2.3.0

9 months ago

2.0.0

9 months ago