1.3.1 • Published 9 months ago

postal-async v1.3.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 months ago

NPM version Build Status

postal-async

Async NAPI based interface for libpostal

Install

$ npm install --save postal-async

Usage

const { parse, expand } = require('postal-async');


expand('781 Franklin Ave Crown Hts Brooklyn NY', function(err, expansions) {
  // expansion is an array of expanded addresses
  assert(expansions.includes('781 franklin avenue crown heights brooklyn new york'));
});

parse('781 Franklin Ave Crown Hts Brooklyn NY', function(err, parsed) {
  // parsed is an object with house_number, street etc.
  assert(parsed.find(({ value, label }) => label === 'house_number' && value === '781'));
});

License

MIT © Damian Krzeminski

1.3.1

9 months ago

1.3.0

9 months ago

1.2.1

2 years ago

1.2.0

3 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.0

5 years ago