# parse-address

> US Street Address Parser

Latest version **1.1.2** (published 2019-04-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install parse-address
pnpm add parse-address
yarn add parse-address
bun add parse-address
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2019-04-16 |
| First published | 2014-12-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 72.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 165 |
| Author | hassansin |
| Maintainers | hassansin |
| Keywords | extract, address, parser, address, street, US, Geo::StreetAddress::US, geo |

## Links

- npm: https://www.npmjs.com/package/parse-address
- Repository: https://github.com/hassansin/parse-address
- Issues: https://github.com/hassansin/parse-address/issues
- npm.io page: https://npm.io/package/parse-address

## Dependencies (1)

- [xregexp](https://npm.io/package/xregexp.md) ^3.1.1

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.1.2 (latest) — 2019-04-16
- 1.1.0 — 2018-09-27
- 1.0.0 — 2018-07-15
- 0.0.10 — 2017-12-19
- 0.0.9 — 2017-12-19
- 0.0.8 — 2017-09-15
- 0.0.7 — 2017-08-01
- 0.0.6 — 2016-09-27
- 0.0.5 — 2015-09-18
- 0.0.4 — 2014-12-12
- 0.0.2 — 2014-12-10
- 0.0.1 — 2014-12-10

## README

# US Street Address Parser  [![Build Status](https://travis-ci.org/hassansin/parse-address.svg)](https://travis-ci.org/hassansin/parse-address)

This is Node.js port for Perl [Geo::StreetAddress::US](http://search.cpan.org/~timb/Geo-StreetAddress-US-1.04/US.pm) package

*Description from Geo::StreetAddress::US*:

>Geo::StreetAddress::US is a regex-based street address and street intersection parser for the United States. Its basic goal is to be as forgiving as possible when parsing user-provided address strings. Geo::StreetAddress::US knows about directional prefixes and suffixes, fractional building numbers, building units, grid-based addresses (such as those used in parts of Utah), 5 and 9 digit ZIP codes, and all of the official USPS abbreviations for street types and state names... [more](http://search.cpan.org/~timb/Geo-StreetAddress-US-1.04/US.pm)

## Usage:

```javascript
//from node:
npm install parse-address
var parser = require('parse-address'); 
var parsed = parser.parseLocation('1005 N Gravenstein Highway Sebastopol CA 95472');

//from browser:
<script type="text/javascript" src="./parse-address.min.js"></script>
var parsed = parseAddress.parseLocation('1005 N Gravenstein Highway Sebastopol CA 95472');

//Parsed address:
{
 number: '1005',
 prefix: 'N',
 street: 'Gravenstein',
 type: 'Hwy',
 city: 'Sebastopol',
 state: 'CA',
 zip: '95472' }
```

---
_Source: https://npm.io/package/parse-address · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
