npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-spc-storm-reports

v1.0.3

Published

This is a library that parses and returns NWS Storm Prediction Center storm reports.

Downloads

28

Readme

node-spc-storm-reports

npm version

This is a library that parses and returns NWS Storm Prediction Center storm reports.

Install

$ npm install node-spc-storm-reports

Usage

var nodeStormReports = require('node-spc-storm-reports');

// Only request tornado reports
nodeStormReports('2016-01-01', { hail: false, windDamage: false }).then(function spcResponse(data) {
	console.log(data);
}).catch(function errorHandler(err) {
	console.log(err);
});

API

nodeStormReports(date, [options])

date

  • Type: string

  • String in date format YYYY-MM-DD, e.g. 2016-01-30

options (optional)

  • Type: object

  • Defines which weather products should be returned. NOTE: If no data is available for a given product, the returned value will be an empty array.

  • Properties:

    • tornado
      • Type: boolean
      • Default: true
      • Defines whether tornado reports should be returned
    • hail
      • Type: boolean
      • Default: true
      • Defines whether hail reports should be returned
    • windDamage
      • Type: boolean
      • Default: true
      • Defines whether wind damage reports should be returned
    • gust
      • Type: boolean
      • Default: false
      • Defines whether wind gust reports should be returned
    • blizzard
      • Type: boolean
      • Default: false
      • Defines whether blizzard reports should be returned
    • freezingRain
      • Type: boolean
      • Default: false
      • Defines whether freezing rain reports should be returned
    • heavySnow
      • Type: boolean
      • Default: false
      • Defines whether heavy snow reports should be returned
    • iceStorm
      • Type: boolean
      • Default: false
      • Defines whether ice storm reports should be returned
    • sleet
      • Type: boolean
      • Default: false
      • Defines whether sleet reports should be returned
    • snow
      • Type: boolean
      • Default: false
      • Defines whether snow reports should be returned
    • wildfire
      • Type: boolean
      • Default: false
      • Defines whether wildfire reports should be returned

##Returned Data Structure Sample

{
  tornado: [
    {
      id: 1,
      time: '18:30',
      type: 'T',
      distance: 3,
      direction: 'NW',
      city: 'REPUBLIC',
      county: 'MARQUETTE',
      source: 'NWS STORM SURVEY',
      remark: 'PRELIMINARY NWS STORM SURVEY CONFIRMS TREE DAMAGE ASSOCIATED WITH A TORNADO ALONG RIVER ROAD NORTHWEST OF REPUBLIC...INCLUDING SNAPPED WHITE PINES LARGER THAN 12 INCHES IN DIAMETER. TIME ESTIMATED FROM RADAR.',
      office: 'MQT',
      issuance: 1464132240,
      fatalities: 0,
      injuries: 0,
      magnitudeDesignator: null,
      magnitude: null,
      state: 'MI',
      latitude: 46.43,
      longitude: -88.03
    }
  ],
  hail: [
    {
      id: 33,
      time: '19:54',
      type: 'A',
      distance: 3,
      direction: 'W',
      city: 'ARVADA',
      county: 'JEFFERSON',
      source: 'TRAINED SPOTTER',
      remark: null,
      office: 'BOU',
      issuance: 1464139140,
      fatalities: 0,
      injuries: 0,
      magnitudeDesignator: 'M',
      magnitude: 100,
      state: 'CO',
      latitude: 39.82,
      longitude: -105.16
    }
  ],
  windDamage: [
    {
      id: 104,
      time: '19:00',
      type: 'W',
      distance: 3,
      direction: 'WNW',
      city: 'PEEL',
      county: 'MARION',
      source: 'EMERGENCY MNGR',
      remark: 'TREES AND POWERLINES DOWN IN THE AREA.',
      office: 'LZK',
      issuance: 1464118500,
      fatalities: 0,
      injuries: 0,
      magnitudeDesignator: null,
      magnitude: null,
      state: 'AR',
      latitude: 36.45,
      longitude: -92.82
    }
  ]
}

License

ISC © Chris Harrell