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

@airport-discovery/snowtam

v1.0.0

Published

SNOWTAM Decoder, and utilities for working with SNOWTAM data

Downloads

6

Readme

❄️ SNOWTAM ✈️

SNOWTAM Decoder, and utilities for working with SNOWTAM data

Installation

yarn add @airport-discovery/snowtam

Usage

For now the module exposes one main function, decode, which accepts a SNOWTAM string.

decode

const snowtam = require('@airport-discovery/snowtam');
const result = snowtam.decode(`SWES0698 ESSB 12261815 COR (SNOWTAM 0698 
        A) ESSB B) 12261815  C) 12 D) 2000 E) 20R F) 1/1/1 G) XX/XX/XX H) 5/5/5 J) 70/10L                
        T) RWY 12 BA 67/72/67. RWY 12 COVER 100 PERCENT. APRON SANDED.)
        CREATED: 26 DEC 2019 18:32:00 SOURCE: EUECYIYN`);

Output

An array of SnowtamItem objects, which are defined as follows:

[
  {
    "attr": "A",
    "originalValue": "ESSB",
    "name": "Aerodrome",
    "value": "ESSB"
  },
  {
    "attr": "B",
    "originalValue": "12261815",
    "name": "Observation date",
    "value": "2022-12-26T18:15:00+03:00"
  },
  {
    "attr": "C",
    "originalValue": "12",
    "name": "Runway",
    "value": "12"
  },
  {
    "attr": "D",
    "originalValue": "2000",
    "name": "Cleared runway length",
    "value": "2000 meters"
  },
  {
    "attr": "E",
    "originalValue": "20R",
    "name": "Cleared runway width",
    "value": "20 meters cleared on the right"
  },
  {
    "attr": "F",
    "originalValue": "1/1/1",
    "value": "Threshold DAMP / Mid runway DAMP / Roll out DAMP / ",
    "name": "Runway conditions"
  },
  {
    "attr": "G",
    "originalValue": "XX/XX/XX",
    "value": "Threshold Not significant / Mid runway Not significant / Roll out Not significant / ",
    "name": "Average thickness"
  },
  {
    "attr": "H",
    "originalValue": "5/5/5",
    "value": "Threshold POOR / Mid runway POOR / Roll out POOR / ",
    "name": "Friction coefficient"
  },
  {
    "attr": "J",
    "originalValue": "70/10L",
    "name": "Critical Snow Banks",
    "value": "Snow banks are 70 centimeters high and 10 meters from the Left edge of the runway."
  },
  {
    "attr": "T",
    "originalValue": "RWY 12 BA 67/72/67. RWY 12 COVER 100 PERCENT. APRON SANDED.)  CREATED: 26 DEC 2019 18:32:00 SOURCE: EUECYIYN",
    "name": "Notes",
    "value": "RWY 12 BA 67/72/67. RWY 12 COVER 100 PERCENT. APRON SANDED.)  CREATED: 26 DEC 2019 18:32:00 SOURCE: EUECYIYN"
  }
]

License

MIT ©