calfire
v1.5.1
Published
Unofficial CalFire data scraper.
Downloads
5
Maintainers
Readme
CalFire
An unofficial CalFire incident scraper/parser.
Installation
npm install --save calfire
Usage
// node.js
'use strict';
const calfire = require('calfire');
calfire.rss().then(console.log);
// returns a list of active incidents;
calfire.currentIncidents().then(console.log);
// returns a list of incidents from the first page from /current_incidents
calfire.currentIncidents({page: 3}).then(console.log);
// gets incidents from the third page of results
calfire.get(12345).then(console.log);
// gets an incident from the ID provided.
License
See LICENSE.txt