calfire

1.5.1 • Public • Published

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

Package Sidebar

Install

npm i calfire

Weekly Downloads

2

Version

1.5.1

License

MIT

Last publish

Collaborators

  • ravenstine