@sroussey/parse-address
Version:
International street address parser for 220 jurisdictions (US, CA + 218 countries and territories), with SEC EDGAR country-code resolution
12 lines (11 loc) • 493 B
TypeScript
/**
* Remove a leading legal-entity / "c/o" segment from an address string. Returns
* the cleaned string and, when one was removed, the organization text. Only the
* FIRST comma-delimited segment is considered, and only when it does not begin
* with a house number (so a real "6 Front Street, ..." is never stripped) and
* there is still address content after it.
*/
export declare function stripLeadingOrganization(address: string): {
cleaned: string;
organization?: string;
};