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

metar-parser

v1.0.1

Published

Parses METAR/SPECI weather reports

Downloads

59

Readme

metar-parser npm version

Parses METAR and SPECI weather reports.

Remarks are still Work In Progress

Installation

npm i metar-parser
yarn add metar-parser

Example

const parse = require('metar-parser');

const parsed = parse('METAR CYWG 172000Z 30015G25KT 3/4SM R36/4000FT/D -SN BLSN BKN008 OVC040 M05/M08 A2992 REFZRA WS RWY36 RMK SF5NS3 SLP134');
console.log(parsed);
{
   "type":"METAR",
   "auto":false,
   "station":"CYWG",
   "time":{
      "day":17,
      "hour":20,
      "minute":0,
      "date":"Wed, 17 Oct 2018 20:00:38 GMT"
   },
   "wind":{
      "direction":300,
      "speedKt":15,
      "speedMps":7.72,
      "gust":25,
      "variableDirection":false,
      "variation":null
   },
   "correction":false,
   "nosig":false,
   "visibility":{
      "meters":1207,
      "feet":3960,
      "miles":0.75,
      "kilometers":1.21
   },
   "temperature":{
      "celsius":-5,
      "fahrenheit":23
   },
   "dewpoint":{
      "celsius":-8,
      "fahrenheit":17.6
   },
   "altimeter":{
      "inches":29.92,
      "millibars":1013
   },
   "clouds":[
      {
         "code":"BKN",
         "meaning":"broken",
         "altitude":800,
         "type":null,
         "typeMeaning":null
      },
      {
         "code":"OVC",
         "meaning":"overcast",
         "altitude":4000,
         "type":null,
         "typeMeaning":null
      }
   ],
   "runwayVisualRange":[
      {
         "runway":"36",
         "min":4000,
         "minRange":"exact",
         "max":4000,
         "maxRange":"exact",
         "trend":"downward"
      }
   ],
   "weather":[
      {
         "codes":[
            "SN"
         ],
         "intensity":"light",
         "descriptor":null,
         "precipitation":"snow",
         "obscuration":null
      },
      {
         "codes":[
            "BL",
            "SN"
         ],
         "intensity":"moderate",
         "descriptor":"blowing",
         "precipitation":"snow",
         "obscuration":null
      }
   ],
   "cavok":false,
   "windshear":[
      "36"
   ],
   "verticalVisibility":null,
   "recentWeather":[
      {
         "code":"FZ",
         "meaning":"freezing"
      },
      {
         "code":"RA",
         "meaning":"rain"
      }
   ],
   "remarks": {} // Not fully implemented yet
}