make_bbls
v0.1.0
Published
Will concatenate values for a borough, block, and lot into a valid BBL string or integer for working with NYC open data
Downloads
15
Readme
make_bbls
A Node JS Module for making valid BBL numbers from separate NYC borough, block and lot values.
Installation
Make sure you have Node.js installed and then do npm install make_bbls
Usage
The bbl
function takes values as either strings or numbers. Passing a fourth value of true
will return the BBL as an integer.
var bbl = require('make_bbls').bbl;
console.log(bbl('Manhattan', 4, 321));
// will output: '1000040321'
console.log(bbl('Manhattan', 4, 321, true));
// will output: 1000040321
Tests
Do npm test