Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
metar-decoder
Advanced tools
Decode METAR weather reports to JavaScript objects.
npm install metar-decoder
import { decode } from 'metar-decoder';
const decoded = decode('EDDF 061150Z 06009KT 5000 RA FEW005 SCT007 BKN009 08/07 Q1014 TEMPO 4000');
// Fetch a full airport object
const airport = await decoded.fetchAirport();
{
"rvr": [],
"clouds": [
{
"name":"few",
"code":"FEW",
"density":"1/8 - 2/8",
"cumulonimbus":false,
"altitude":500
},
{
"name":"scattered",
"code":"SCT",
"density":"3/8 - 4/8",
"cumulonimbus":false,
"altitude":700
},
{
"name":"broken",
"code":"BKN",
"density":"5/8 – 7/8",
"cumulonimbus":false,
"altitude":900
}
],
"weather":[
{
"abbreviation":"RA",
"meaning":"rain"
}
],
"auto":false,
"cavok":false,
"airport":"EDDF",
"recorded_at":"2021-09-06T11:50:00.000Z",
"wind":{
"direction":"060",
"speed":9,
"guest":null,
"unit":"KT"
},
"visibility":5000,
"dewpoint":7,
"temperature":8,
"qnh":1014,
"trend":{
"type":"TEMPO",
"full":"TEMPO 4000"
}
}
{
"icao":"EDDF",
"iata":"FRA",
"name":"Frankfurt am Main International Airport",
"city":"Frankfurt-am-Main",
"state":"Hesse",
"country":"DE",
"elevation":364,
"lat":50.0264015198,
"lon":8.543129921,
"tz":"Europe/Berlin"
}
This project is completely type safe. Take a look to our typescript interfaces if you need a detailed description of the metar decoder response.
FAQs
Convert METAR weather reports to JavaScript objects
The npm package metar-decoder receives a total of 1 weekly downloads. As such, metar-decoder popularity was classified as not popular.
We found that metar-decoder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.