0.1.6 • Published 7 years ago

weather-alerts-parser v0.1.6

Weekly downloads
2
License
BSD-2-Clause
Repository
github
Last release
7 years ago

Weather Alerts Parser

A streaming parser for National Weather Service alerts.

Usage

Pipe a stream of the NWS atom feed to .stream() to convert it into alert objects.

For example, this will print alert objects to stdout:

var es = require('event-stream');
var fs = require('fs');
var parser = require('weather-alerts-parser');
var request = require('request');

request.get('http://alerts.weather.gov/cap/us.php?x=1')
  .pipe(parser.stream())
  .pipe(es.stringify())
  .pipe(process.stdout);

You can also stream them into other things, like files. See weather-alerts-geojson if you want to convert these bad boys to geojson.

Attributes

Most of the attributes are self-explanatory, but you may want to review the official information on how to interpret alert attributes, from the CAP v1.1 specification.

0.1.6

7 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

10 years ago

0.1.0

10 years ago