Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 908 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 908 Bytes

nyc-street-normalizer

Normalizes New York City street and avenue names and abbreviations, part of the NYC Space/Time Directory project.

Examples:

Input Output
Rivington Rivington Street
Av B Avenue B
W. 17th West 17th Street
B'way Broadway
Merchants Ex Merchants Exchange
Grace Ct. Grace Court

For more examples, see test/streets.json.

Installation & usage

From Node.js:

npm install --save nypl-spacetime/nyc-street-normalizer
const normalizer = require('@spacetime/nyc-street-normalizer')

console.log(normalizer('b\'way'))

From the command line:

npm install -g nypl-spacetime/nyc-street-normalizer

nyc-street-normalizer "b'way"