A parser to find where a directional name or abbreviation is in a string.
Full documentation is available at the zerodep.app page.
All @zerodep packages support both ESM and CJS.
import { addressDirectional } from '@zerodep/address-directional';
// or
const { addressDirectional } = require('@zerodep/address-directional');
addressDirectional('1234 Main Street East, Los Angeles CA, US');
// [
// {
// directional: 'E',
// source: 'East',
// ndx: 17,
// length: 4,
// },
// ]