1.0.6 • Published 12 months ago

@svantetic/metar v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

https://nodei.co/npm/@svantetic/metar.png?downloads=true&downloadRank=true&stars=true

Description

Get metar from VATSIM for given ICAO airport code and display it in terminal.

For simulation use only!

You can use it as a CLI tool by installing it globally, or as a package in your project.

Installation as a CLI tool

$ npm install -g @svantetic/metar

Usage

$ metar epkt

Example output

EPKT 141430Z 09010KT 060V140 CAVOK 21/02 Q1015

Installation as a package

$ npm install -g @svantetic/metar

Usage

const { getMetar } = require('@svantetic/metar/api')

getMetar('epkt').then((metar) => {
  // do stuff
});


// or

const epkt = await getMetar('epkt');

Error handling

Package does not do additional validation or error handling. When there's no metar available or ICAO code is wrong, it will return empty string, just like VATSIM api.

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago