Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clhenrick/make_bbls
Node JS Module for making valid BBL numbers from separate NYC borough, block and lot values.
https://github.com/clhenrick/make_bbls
Last synced: 11 days ago
JSON representation
Node JS Module for making valid BBL numbers from separate NYC borough, block and lot values.
- Host: GitHub
- URL: https://github.com/clhenrick/make_bbls
- Owner: clhenrick
- Created: 2015-02-16T05:23:33.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-16T15:32:46.000Z (almost 10 years ago)
- Last Synced: 2024-10-12T05:07:09.981Z (about 1 month ago)
- Language: JavaScript
- Size: 145 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# make_bbls
A Node JS Module for making valid BBL numbers from separate NYC borough, block and lot values.**Code Credit:** Iteration on [code](https://github.com/aepyornis/DOB-Jobs/blob/master/postgres_parser/parse.js#L157-L195) by [@aepyornis](https://github.com/aepyornis)
## 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`