@ryanburnette/get-metar
v1.1.3
Published
Get a METAR as an object from AviationWeather.gov.
Downloads
7
Readme
get-metar
Get a METAR as an object from AviationWeather.gov.
Installation
npm install @ryanburnette/get-metar
Usage
var getMetar = require('./index.js');
(async function () {
var icao = (process.argv[2] || 'KATL').toLowerCase();
var metar = await getMetar(icao);
console.log(JSON.stringify(metar));
})();
Try the demo and pipe it to jq for easier reading.
node demo.js KSRQ | jq