4.0.1 • Published 4 years ago
hafas-record-delays v4.0.1
hafas-record-delays
Record delays from hafas-monitor-departures@4
into a LevelDB.
Installing
npm install hafas-record-delays
Usage
const recordDelays = require('hafas-record-delays')
const monitor = … // create hafas-monitor-departures stream somehow
const recorder = recordDelays('path/to/level-db.ldb', monitor)
recorder.on('error', console.error)
recorder.on('stats', console.log)
The stats
event comes from hafas-monitor-departures
.
Contributing
If you have a question or have difficulties using hafas-record-delays
, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.