sncf-delays
v0.0.0
Published
SNCF-delays is a NodeJS tool to check french railway delays.
Downloads
2
Readme
SNCF-delays is a NodeJS tool to check french railways delays.
Install
$ npm install sncf-delays
Use
var SNCF = require('sncf-delays');
SNCF.departuresDelaysAt("Orléans", function(err, delays) {
var delay = delays[0];
console.log("Toum Toum Tiïïiuuoummm ! " +
"Le train numéro %s à destination de %s, prévu à %s quai %, aura un retard d'environ %s",
delay.train_id,
delay.to,
delay.train_time,
delay.train_deck,
delay.delay_text);
});
Run tests
$ npm test
Run Grunt (jslint, docs)
$ grunt
Documentation
API documentation is built by grunt
and stored in the public/docs
directory
License
BSD
Contribute
All comments, patchs and pull requests are welcome, but please ensure you ran grunt
without warnings before creating a pull request.