[](https://travis-ci.org/calweb/ndbc-realtime-tojson)
npm install ndbc-realtime-tojson
Use this module to convert NOAA National Data Bouy Center text product data to json.
| Package | ndbc-realtime-tojson |
| Description | convert NOAA National Data Bouy Center text product data to json |
| Node Version | ~ 6.9.1 |
``js
const ndbcToJSON = require('ndbc-realtime-tojson')
// 41004 is the Edisto Bouy Id off of SC coastspec
// is the type of data (spectral wave data)
// http://www.ndbc.noaa.gov/rt_data_access.shtml
ndbcToJSON('41004', 'spec').then(bouyData => {
console.log(bouyData)
})
`
This Project follows the StandardJS style guide.

To Contribute:
- Clone Repo
- npm install`
- Write Code
- Write Test(s)
- Submit Pull Request
_ndbc-realtime-tojson_ is available under the MIT license.