{"_id":"@airport-discovery/metars-tafs","_rev":"4-c4cece7e8a93df0526493b547bf194b3","name":"@airport-discovery/metars-tafs","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@airport-discovery/metars-tafs","version":"1.0.0","description":"Get latest METARs and TAFs by ICAO code","main":"index.js","scripts":{"lint":"eslint --ext .js --ext .jsx index.js","prepush":"yarn run lint","release-patch":"yarn version --patch","release-minor":"yarn version --minor","release-major":"yarn version --major"},"repository":{"type":"git","url":"git+https://github.com/Airport-Discovery/metars-tafs.git"},"author":{"name":"Airport Discovery","email":"hello@airportdiscovery.com","url":"https://github.com/Airport-Discovery"},"license":"MIT","bugs":{"url":"https://github.com/Airport-Discovery/metars-tafs/issues"},"homepage":"https://github.com/Airport-Discovery/metars-tafs#readme","keywords":["metar","taf","aviation","weather","pilot","api"],"devDependencies":{"eslint":"^6.6.0","eslint-config-airbnb":"17.1.1","eslint-config-prettier":"^6.0.0","eslint-plugin-import":"^2.18.0","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-prettier":"^3.1.0","eslint-plugin-react":"^7.14.2","husky":"^3.0.2","prettier":"^1.18.2"},"husky":{"hooks":{"pre-push":"yarn run prepush"}},"dependencies":{"axios":"^0.21.0","xml2json":"^0.12.0"},"gitHead":"f6cbd2a8817958bd16a38abf61afba5f8c4c5265","_id":"@airport-discovery/metars-tafs@1.0.0","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-yNy8lGEnKmpk1Uc8ARkiTjUxLQ1Ke+UjfZlFNRPSnOpFQ/5+MILQvnLKGvB6YeKaU5hocyzEli2aI/t+UR9tUg==","shasum":"a3a392f823b52d14ffde7c9cf189751d1910bb61","tarball":"https://registry.npmjs.org/@airport-discovery/metars-tafs/-/metars-tafs-1.0.0.tgz","fileCount":7,"unpackedSize":15238,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf3PKsCRA9TVsSAnZWagAAywsQAJAixGh9abzLVZX4leaJ\nIIDEO4hsDNZajU6h8U3AhLjL/x5qPMCBM6aKgodDXOBoIAUOAxrFeUvr45/u\nmEOyR1mLzsx6QEA3xv6bp8vnmbkOpe9sxjg+ZF33t2iQJBcNdogjIPbRGWEc\nF1LjuryXScp/cDZYCjD8rMmeOQdjC9DjjkNS/6VJESDkrAPN5ziiQJxpoNxW\nRAE7EOiZqHRMEOlN6XcKdR2fn0LVessIm2ifBhnTsfkQRDvWx3TEakB61tBG\nYM1xczV5SJsAKwG/dC1o/vqnjY91m8adTYPqSMD/+EiiLf7Sh74VUCpaQqgD\nQYOUeMcXEPNb0r8OyY+CckbJBEjjdZg5QVNGPDtaMkTxjr7ZqFPA2DRb79gN\nqwq6M+1HzYZIECZltZdmdWMzhCtpRX2Glw9GXVx0ASabAvPU7QmaYZIErCag\n96IZrzVcsC2UTwE0UvAUu61ou7d3sTEK2fFSvu4KCrv3pEw2CEPvb+dASiOu\nHByRJfjzNBLh1h+kFRiYEfHmsawrEzZYCs+GVW2IOwhdSF7f7lXuN7hEnPCI\nsJeqqb3uR4T/ZUnkNCsk7S2HdkccdjKpUTuK0D49OkOzpODCUhiQK/TtVe3w\nK6ZlZ3nJQx4nrlcc/+DBenOpigFcaKVrlDJhpVBDEpn+0TuNQ6pyLp2arWme\nWpkU\r\n=zvSV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvf4HGVdrthQ8CnmjNDd3L3poicCXADfzZCSHQzmhtKAIhANjOHpLycTkz/IVpeyFjMHVyQr/j8jFbjI6Dj5UY509Q"}]},"_npmUser":{"name":"hatemalimam","email":"me@hatemalimam.com"},"directories":{},"maintainers":[{"name":"hatemalimam","email":"me@hatemalimam.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metars-tafs_1.0.0_1608315563629_0.5579582958093758"},"_hasShrinkwrap":false},"1.0.1":{"name":"@airport-discovery/metars-tafs","version":"1.0.1","description":"Get latest METARs and TAFs by ICAO code","main":"index.js","scripts":{"lint":"eslint --ext .js --ext .jsx index.js","prepush":"yarn run lint","release-patch":"yarn version --patch","release-minor":"yarn version --minor","release-major":"yarn version --major"},"repository":{"type":"git","url":"git+https://github.com/Airport-Discovery/metars-tafs.git"},"author":{"name":"Airport Discovery","email":"hello@airportdiscovery.com","url":"https://github.com/Airport-Discovery"},"license":"MIT","bugs":{"url":"https://github.com/Airport-Discovery/metars-tafs/issues"},"homepage":"https://github.com/Airport-Discovery/metars-tafs#readme","keywords":["metar","taf","aviation","weather","pilot","api"],"devDependencies":{"eslint":"^6.6.0","eslint-config-airbnb":"17.1.1","eslint-config-prettier":"^6.0.0","eslint-plugin-import":"^2.18.0","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-prettier":"^3.1.0","eslint-plugin-react":"^7.14.2","husky":"^3.0.2","prettier":"^1.18.2"},"husky":{"hooks":{"pre-push":"yarn run prepush"}},"dependencies":{"axios":"^0.21.0","xml2json":"^0.12.0"},"gitHead":"59ef420a718e38480b18271b62b1e5f8a266d114","_id":"@airport-discovery/metars-tafs@1.0.1","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-ejkiogGP6c6v7HSBavH61JUZjfGIzugjegDLV1xqqUW1AAF6rnc5yrQwjwH7dmoa9k0+9RvraI9JL+lII4LSzg==","shasum":"7febe367b781aef8ce9ce00a940cea4dfed96432","tarball":"https://registry.npmjs.org/@airport-discovery/metars-tafs/-/metars-tafs-1.0.1.tgz","fileCount":6,"unpackedSize":14407,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf3ZwzCRA9TVsSAnZWagAAPgYQAIXaZstjh5HGc3hM5EZw\nlDsmxc42uStpvsjhq3WQoQFavdV73rHv5VGX1/TM6daUF3kQKrBWu+D+6hHq\nQNtORJ6z7FmROvugEG+9Dd6kv2utuLXSgnjnD+RMySOr2TNuZjZgKQ0GRmOP\nIQo2F2h+xQ7GWmX63U6klGXPtoWQZIorpmHz1ccKu6LbRcEM8YncwVSHR9Su\nF1ZS4N65tsdmjK24PHpgGebZVaVV3SxConZdwpNCGY7fW0MTCnAN9c6O1Oim\np7khJIKWLksmYLD3VuNlfRGjW3rNYtgqynIjT6VnWcmCdhog4W7OwNMgctce\nDSDHsIfaHCKewi4JHJyjb3osx4MeknNQ1so/OWy+m99m3JMfjq/GRg2Tyv7D\nRnTSqqfAi9ApnTjyquzOHO2ewfVscLkQpk//E6VmQsZ0GdRKgUeiCqi9pyMx\n+Q6Yl8Z3bvXjqqw3UPCNwJBDZiihD9rQ/TFYgxMyvMVH3Gs0XKonLMZYWtNH\nvh4Y+qNk/SZYBlIHMLkyg/P50MKf2CeLoovO2xJWsFUPC8gYIEpaRW4Y4QJx\nMaK/D9Sfurjs02rRanm4FwRby2TTfCN2Grqq3EuHcOJ74uROLdiJl3dwBJLt\nzsxnIOGvbmAQBRKU6UlrIU98bdMctCnmUGsAsTW4RFZr5S/S7xPd21x9bs5y\nD+Jq\r\n=mRQA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtTaL9GJZwtSDgAIs5qXbTkZrFapqnoauPDj3Y3ShUawIhAJNkTdmCLoVTtpkQU2fxJ5LmuJOw4NtwcbJBqebSh6Vi"}]},"_npmUser":{"name":"hatemalimam","email":"me@hatemalimam.com"},"directories":{},"maintainers":[{"name":"hatemalimam","email":"me@hatemalimam.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metars-tafs_1.0.1_1608358962472_0.9205423881623815"},"_hasShrinkwrap":false},"1.0.2":{"name":"@airport-discovery/metars-tafs","version":"1.0.2","description":"Get latest METARs and TAFs by ICAO code","main":"index.js","scripts":{"lint":"eslint --ext .js --ext .jsx index.js","prepush":"yarn run lint","release-patch":"yarn version --patch","release-minor":"yarn version --minor","release-major":"yarn version --major"},"repository":{"type":"git","url":"git+https://github.com/Airport-Discovery/metars-tafs.git"},"author":{"name":"Airport Discovery","email":"hello@airportdiscovery.com","url":"https://github.com/Airport-Discovery"},"license":"MIT","bugs":{"url":"https://github.com/Airport-Discovery/metars-tafs/issues"},"homepage":"https://github.com/Airport-Discovery/metars-tafs#readme","keywords":["metar","taf","aviation","weather","pilot","api"],"devDependencies":{"eslint":"^6.6.0","eslint-config-airbnb":"17.1.1","eslint-config-prettier":"^6.0.0","eslint-plugin-import":"^2.18.0","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-prettier":"^3.1.0","eslint-plugin-react":"^7.14.2","husky":"^3.0.2","prettier":"^1.18.2"},"husky":{"hooks":{"pre-push":"yarn run prepush"}},"dependencies":{"axios":"^0.21.0","xml2json":"^0.12.0"},"gitHead":"3a2e1d442f9d1cedc0c4fcb7e67e6026d1cf6be6","_id":"@airport-discovery/metars-tafs@1.0.2","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-/OW314m5S8U8O+aZ6uxKtLmrkM9eLN5Ixb9gUw3LPE9MIN0Lz7eKpw9isV85gWuMZSWV1Ur09oeDY9WqqEgVVA==","shasum":"79f81c07faec98e904f09f2e7cd3881ef4e87645","tarball":"https://registry.npmjs.org/@airport-discovery/metars-tafs/-/metars-tafs-1.0.2.tgz","fileCount":6,"unpackedSize":14536,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf3Z29CRA9TVsSAnZWagAAjdEP/1K136s52BXt7ijDPXnz\nQ6EH5X3mcxPLWft75pMDm4wiNkE2RIXXuQJusS5g5Dsne+XwR3bpP1G3LY6x\nKWUq3I4Px1DJTQcwG/M+mSX70vxciaXnUSwa7qkPpiXx0yH5PwoRYhE6V+FR\nhT+fHT6YtRztLP3JYjgsvUIIiryuUUa/mdG+3BQqImdsdSvfpOeMi+dsATi8\neUXtWVpCqLWpxutVvsJy/NQb/MdfQaTJ6c/KS9s2+CTe0U2mnHCGapS8JNEb\nID5N0sqOTd0Fw0vdR8kLxbApImDjWRgfAbhtn9A3vQnmabZvrSJPPqF91Set\niMqiCsp291zjJCZo52gsAx+6t11C5OccKMt0p0+qiMzPq4XhhzSZsbxNz4h5\nuc2tXkTKkblWgEFIMi1kxHLa+Hy1AyF6/VDdbpau4eyL/cwLw7vquUFTu2kK\nYnqCNvr7qQFU7ct9Eun/pNQIpUp8p4YfY82/VARj3+G5NUa2W/Iqz8hYF9/G\n4fhDFWufCFTxmP7cPMWIwpADl9WqxSvQYSz7ByADA0b3lqM13NILvfO1o5po\nu66PHCqu/NaHhhIR0gSMKx5TFa40xxGMtQfRFBXTuIOzwU9/1skfLJTgb1/P\n9DuQ3ADYOqTLEoN8t59wtwhx+cwCBORk2ZJoiWNpJENdjlVDoSbXgHBmxuW0\nbGYc\r\n=W8up\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAkFJf61CzFT/u0vZJQAWdX0KCVjSBqB4PyCxHlki1IjAiEAkarQKORHIu+yZHMNVKmNMw5oiO19sUMZMIumBCDttEU="}]},"_npmUser":{"name":"hatemalimam","email":"me@hatemalimam.com"},"directories":{},"maintainers":[{"name":"hatemalimam","email":"me@hatemalimam.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metars-tafs_1.0.2_1608359356821_0.7555578017410174"},"_hasShrinkwrap":false},"1.0.3":{"name":"@airport-discovery/metars-tafs","version":"1.0.3","description":"Get latest METARs and TAFs by ICAO code","main":"index.js","scripts":{"lint":"eslint --ext .js --ext .jsx index.js","prepush":"yarn run lint","release-patch":"yarn version --patch","release-minor":"yarn version --minor","release-major":"yarn version --major"},"repository":{"type":"git","url":"git+https://github.com/Airport-Discovery/metars-tafs.git"},"author":{"name":"Airport Discovery","email":"hello@airportdiscovery.com","url":"https://github.com/Airport-Discovery"},"license":"MIT","bugs":{"url":"https://github.com/Airport-Discovery/metars-tafs/issues"},"homepage":"https://github.com/Airport-Discovery/metars-tafs#readme","keywords":["metar","taf","aviation","weather","pilot","api"],"devDependencies":{"eslint":"^6.6.0","eslint-config-airbnb":"17.1.1","eslint-config-prettier":"^6.0.0","eslint-plugin-import":"^2.18.0","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-prettier":"^3.1.0","eslint-plugin-react":"^7.14.2","husky":"^3.0.2","prettier":"^1.18.2"},"husky":{"hooks":{"pre-push":"yarn run prepush"}},"dependencies":{"axios":"^0.21.0","xml2json":"^0.12.0"},"gitHead":"bd86238f936ced4607a9e7e5b810898cc08663c5","_id":"@airport-discovery/metars-tafs@1.0.3","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-s+CnUEq/ys8+ljqg71tpdooWLueoMxGDnYbsF0rL0B0tQ+2g1xMOzGNIy/2gRIenAL/OBdVttT0DD0Ost9WGBQ==","shasum":"60f9fc9c7db3dc3223685fc1aeef786c6473a57b","tarball":"https://registry.npmjs.org/@airport-discovery/metars-tafs/-/metars-tafs-1.0.3.tgz","fileCount":6,"unpackedSize":14537,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6uNKCRA9TVsSAnZWagAAA0UP+gJxFMMzX/NITGNUOaXW\nfB9olKoYa9G15DomBPJbLt6qWPskdYGoIaoMPwsrwmvEbTWGReOhSmEnK3Fd\nq7NwQUfrZwdLzxTlXkIAUx7uibvYbnxFNAEeDjMnmpcaFwGg6dEI3PfMgQlr\njB23XulM8sK792JAweJF8ucjvnEOaQk25Hzw/Zor+HsDpRrc+sX16Jk0En2r\nJidHj7g8+nbe9X5ObH4X5859OdFDyWANOXmhFll8uIoeMnYVl79QALSspian\nMFGONRkp8Skoga0V055BlPjAVtzZfwFSNtcv9fDlD13c4pbMPoThXhLWdOpt\ntySgKRzxHtkfwfdZteyMyhesL2oEzW5+OPgm+o93FKSOXaXrpVA+mUNMsJqx\n2k5RKNauslXo9vsXWiRYide53UPHCZlzBP5Yyb8PZAxynpcnEoNpBDNjzBvD\nWI1yf0YvgEn7blY8t2rskUCGgHKzoaLSuoqoJqarmM8g+RLK7y3xaNMkI08s\noYx3qIalU6lup+aIr+Dyufttv4zXyuikKfScfHTIxG/zIEJLxgwTZdU+lbCX\nGgISpj3kMQ1CP6P7ywOtpfU1Hjl//BoKopU4zp2RcOxPEp+0vXkoYxYIWIZn\ntrnTufV/LkI+2fduwwqDzNVTqzV3w8KXxiVXlHqIaBVOHV/mDh4IUWXM2hFQ\nLIEz\r\n=8jhY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCHzzIQVugjx8QtCrYZHnTu1PUD03INB9jhJ5Tdypx8KACIBXs7vaVhXvtTiEj5Xj0nf0NXnG1G32AUhtUmgubaC3U"}]},"_npmUser":{"name":"hatemalimam","email":"me@hatemalimam.com"},"directories":{},"maintainers":[{"name":"hatemalimam","email":"me@hatemalimam.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metars-tafs_1.0.3_1609229130101_0.8218537152996452"},"_hasShrinkwrap":false}},"time":{"created":"2020-12-18T18:19:23.404Z","1.0.0":"2020-12-18T18:19:23.827Z","modified":"2022-04-04T12:23:06.736Z","1.0.1":"2020-12-19T06:22:42.658Z","1.0.2":"2020-12-19T06:29:16.953Z","1.0.3":"2020-12-29T08:05:30.238Z"},"maintainers":[{"name":"hatemalimam","email":"me@hatemalimam.com"}],"description":"Get latest METARs and TAFs by ICAO code","homepage":"https://github.com/Airport-Discovery/metars-tafs#readme","keywords":["metar","taf","aviation","weather","pilot","api"],"repository":{"type":"git","url":"git+https://github.com/Airport-Discovery/metars-tafs.git"},"author":{"name":"Airport Discovery","email":"hello@airportdiscovery.com","url":"https://github.com/Airport-Discovery"},"bugs":{"url":"https://github.com/Airport-Discovery/metars-tafs/issues"},"license":"MIT","readme":"# metars-tafs\n\nGet latest METARs and TAFs by ICAO code from [Aviation Weather Center](https://www.aviationweather.gov/)\n\n## Installation\n\n```\nyarn add @airport-discovery/metars-tafs\n```\n\n## Usage\n\nThe module exposes two main functions, which accept an ICAO string or an array string of ICAOs\n\n## `METARs`\n\n```javascript\nconst airportDiscovery = require('@airport-discovery/metars-tafs');\nconst metars = await airportDiscovery.metars('LIMC'); // ICAO for Malpensa Airport (MXP)\n```\n\n## Output\n\n```json\n{\n  \"rawText\": \"LIMC 181720Z 28003KT 1500 BR BKN001 06/06 Q1027 NOSIG\",\n  \"latitude\": \"45.62\",\n  \"longitude\": \"8.72\",\n  \"temperatureC\": \"6.0\",\n  \"dewPointC\": \"6.0\",\n  \"wind\": {\n    \"directionDegrees\": \"280\",\n    \"speedKt\": \"3\"\n  },\n  \"visibilityStatuteMi\": \"0.93\",\n  \"altimInHg\": \"30.324802\",\n  \"qualityControlFlags\": {\n    \"no_signal\": \"TRUE\"\n  },\n  \"wxString\": \"BR\",\n  \"skyCondition\": {\n    \"skyCover\": \"BKN\",\n    \"cloudBaseFtAgl\": \"100\"\n  },\n  \"flightCategory\": \"LIFR\",\n  \"metarType\": \"METAR\",\n  \"elevationM\": \"221.0\"\n}\n```\n\nOr multiple ICAO codes\n\n```javascript\nconst airportDiscovery = require('@airport-discovery/metars-tafs');\nconst metars = await airportDiscovery.metars(['LIMC', 'LTFM']);\n```\n\n## Output\n\n```json\n[\n  {\n    \"rawText\": \"LIMC 181750Z 32003KT 270V340 1100 R35R/P1500N R17L/P1500N R35L/P1500N BCFG BKN001 06/06 Q1027 BECMG 0800 FG\",\n    \"latitude\": \"45.62\",\n    \"longitude\": \"8.72\",\n    \"temperatureC\": \"6.0\",\n    \"dewPointC\": \"6.0\",\n    \"wind\": {\n      \"directionDegrees\": \"320\",\n      \"speedKt\": \"3\"\n    },\n    \"visibilityStatuteMi\": \"0.68\",\n    \"altimInHg\": \"30.324802\",\n    \"qualityControlFlags\": {},\n    \"wxString\": \"BCFG\",\n    \"skyCondition\": {\n      \"skyCover\": \"BKN\",\n      \"cloudBaseFtAgl\": \"100\"\n    },\n    \"flightCategory\": \"LIFR\",\n    \"metarType\": \"METAR\",\n    \"elevationM\": \"221.0\"\n  },\n  {\n    \"rawText\": \"LTFM 181750Z 36011KT 9999 SCT015 BKN025 07/04 Q1028 NOSIG RMK RWY17L 34010KT RWY34L 34010KT RWY16R 34008KT RWY36 35011KT RWY18 35011KT\",\n    \"latitude\": \"41.27\",\n    \"longitude\": \"28.75\",\n    \"temperatureC\": \"7.0\",\n    \"dewPointC\": \"4.0\",\n    \"wind\": {\n      \"directionDegrees\": \"360\",\n      \"speedKt\": \"11\"\n    },\n    \"visibilityStatuteMi\": \"6.21\",\n    \"altimInHg\": \"30.35433\",\n    \"qualityControlFlags\": {\n      \"no_signal\": \"TRUE\"\n    },\n    \"skyCondition\": {},\n    \"flightCategory\": \"MVFR\",\n    \"metarType\": \"METAR\",\n    \"elevationM\": \"99.0\"\n  }\n]\n```\n\n## `TAFs`\n\n```javascript\nconst airportDiscovery = require('@airport-discovery/metars-tafs');\nconst tafs = await airportDiscovery.tafs('LIMC'); // ICAO for Malpensa Airport (MXP)\n```\n\n## Output\n\n```json\n{\n  \"rawText\": \"TAF LIMC 181700Z 1818/1924 VRB05KT 1500 BR BKN002 BKN050 PROB40 TEMPO 1821/1906 0600 FG BECMG 1907/1910 7000 SCT020 BKN040 BECMG 1918/1920 3000 BR\",\n  \"issueTime\": \"2020-12-18T17:00:00Z\",\n  \"bulletinTime\": \"2020-12-18T17:00:00Z\",\n  \"validTimeFrom\": \"2020-12-18T18:00:00Z\",\n  \"validTimeTo\": \"2020-12-20T00:00:00Z\",\n  \"latitude\": \"45.62\",\n  \"longitude\": \"8.72\",\n  \"elevationM\": \"221.0\",\n  \"forecast\": [\n    {\n      \"timeFrom\": \"2020-12-18T18:00:00Z\",\n      \"timeTo\": \"2020-12-19T07:00:00Z\",\n      \"wind\": {\n        \"directinDegrees\": \"0\",\n        \"speedKt\": \"5\"\n      },\n      \"visibilityStatuteMi\": \"0.93\",\n      \"wxString\": \"BR\",\n      \"skyCondition\": {}\n    },\n    {\n      \"timeFrom\": \"2020-12-18T21:00:00Z\",\n      \"timeTo\": \"2020-12-19T06:00:00Z\",\n      \"changeIndicator\": \"TEMPO\",\n      \"wind\": {},\n      \"visibilityStatuteMi\": \"0.37\",\n      \"wxString\": \"FG\"\n    },\n    {\n      \"timeFrom\": \"2020-12-19T07:00:00Z\",\n      \"timeTo\": \"2020-12-19T18:00:00Z\",\n      \"changeIndicator\": \"BECMG\",\n      \"timeBecoming\": \"2020-12-19T10:00:00Z\",\n      \"wind\": {\n        \"directinDegrees\": \"0\",\n        \"speedKt\": \"5\"\n      },\n      \"visibilityStatuteMi\": \"4.35\",\n      \"wxString\": \"BR\",\n      \"skyCondition\": {}\n    },\n    {\n      \"timeFrom\": \"2020-12-19T18:00:00Z\",\n      \"timeTo\": \"2020-12-20T00:00:00Z\",\n      \"changeIndicator\": \"BECMG\",\n      \"timeBecoming\": \"2020-12-19T20:00:00Z\",\n      \"wind\": {\n        \"directinDegrees\": \"0\",\n        \"speedKt\": \"5\"\n      },\n      \"visibilityStatuteMi\": \"1.86\",\n      \"wxString\": \"BR\",\n      \"skyCondition\": {}\n    }\n  ]\n}\n```\n\nOr multiple ICAO codes\n\n```javascript\nconst airportDiscovery = require('@airport-discovery/metars-tafs');\nconst tafs = await airportDiscovery.tafs(['LIMC', 'LTFM']);\n```\n\n## Output\n\n```json\n[\n  {\n    \"rawText\": \"TAF LIMC 181700Z 1818/1924 VRB05KT 1500 BR BKN002 BKN050 PROB40 TEMPO 1821/1906 0600 FG BECMG 1907/1910 7000 SCT020 BKN040 BECMG 1918/1920 3000 BR\",\n    \"issueTime\": \"2020-12-18T17:00:00Z\",\n    \"bulletinTime\": \"2020-12-18T17:00:00Z\",\n    \"validTimeFrom\": \"2020-12-18T18:00:00Z\",\n    \"validTimeTo\": \"2020-12-20T00:00:00Z\",\n    \"latitude\": \"45.62\",\n    \"longitude\": \"8.72\",\n    \"elevationM\": \"221.0\",\n    \"forecast\": [\n      {\n        \"timeFrom\": \"2020-12-18T18:00:00Z\",\n        \"timeTo\": \"2020-12-19T07:00:00Z\",\n        \"wind\": {\n          \"directinDegrees\": \"0\",\n          \"speedKt\": \"5\"\n        },\n        \"visibilityStatuteMi\": \"0.93\",\n        \"wxString\": \"BR\",\n        \"skyCondition\": {}\n      },\n      {\n        \"timeFrom\": \"2020-12-18T21:00:00Z\",\n        \"timeTo\": \"2020-12-19T06:00:00Z\",\n        \"changeIndicator\": \"TEMPO\",\n        \"wind\": {},\n        \"visibilityStatuteMi\": \"0.37\",\n        \"wxString\": \"FG\"\n      },\n      {\n        \"timeFrom\": \"2020-12-19T07:00:00Z\",\n        \"timeTo\": \"2020-12-19T18:00:00Z\",\n        \"changeIndicator\": \"BECMG\",\n        \"timeBecoming\": \"2020-12-19T10:00:00Z\",\n        \"wind\": {\n          \"directinDegrees\": \"0\",\n          \"speedKt\": \"5\"\n        },\n        \"visibilityStatuteMi\": \"4.35\",\n        \"wxString\": \"BR\",\n        \"skyCondition\": {}\n      },\n      {\n        \"timeFrom\": \"2020-12-19T18:00:00Z\",\n        \"timeTo\": \"2020-12-20T00:00:00Z\",\n        \"changeIndicator\": \"BECMG\",\n        \"timeBecoming\": \"2020-12-19T20:00:00Z\",\n        \"wind\": {\n          \"directinDegrees\": \"0\",\n          \"speedKt\": \"5\"\n        },\n        \"visibilityStatuteMi\": \"1.86\",\n        \"wxString\": \"BR\",\n        \"skyCondition\": {}\n      }\n    ]\n  },\n  {\n    \"rawText\": \"TAF LTFM 181640Z 1818/1924 34012KT 9999 SCT015 BKN025 BECMG 1819/1821 27006KT TEMPO 1904/1908 4000 -RA BR BKN004 BKN020 BECMG 1909/1912 34010KT\",\n    \"issueTime\": \"2020-12-18T16:40:00Z\",\n    \"bulletinTime\": \"2020-12-18T17:00:00Z\",\n    \"validTimeFrom\": \"2020-12-18T18:00:00Z\",\n    \"validTimeTo\": \"2020-12-20T00:00:00Z\",\n    \"latitude\": \"41.27\",\n    \"longitude\": \"28.75\",\n    \"elevationM\": \"99.0\",\n    \"forecast\": [\n      {\n        \"timeFrom\": \"2020-12-18T18:00:00Z\",\n        \"timeTo\": \"2020-12-18T19:00:00Z\",\n        \"wind\": {\n          \"directinDegrees\": \"340\",\n          \"speedKt\": \"12\"\n        },\n        \"visibilityStatuteMi\": \"6.21\",\n        \"skyCondition\": {}\n      },\n      {\n        \"timeFrom\": \"2020-12-18T19:00:00Z\",\n        \"timeTo\": \"2020-12-19T09:00:00Z\",\n        \"changeIndicator\": \"BECMG\",\n        \"timeBecoming\": \"2020-12-18T21:00:00Z\",\n        \"wind\": {\n          \"directinDegrees\": \"270\",\n          \"speedKt\": \"6\"\n        },\n        \"visibilityStatuteMi\": \"6.21\",\n        \"skyCondition\": {}\n      },\n      {\n        \"timeFrom\": \"2020-12-19T04:00:00Z\",\n        \"timeTo\": \"2020-12-19T08:00:00Z\",\n        \"changeIndicator\": \"TEMPO\",\n        \"wind\": {},\n        \"visibilityStatuteMi\": \"2.49\",\n        \"wxString\": \"-RA BR\",\n        \"skyCondition\": {}\n      },\n      {\n        \"timeFrom\": \"2020-12-19T09:00:00Z\",\n        \"timeTo\": \"2020-12-20T00:00:00Z\",\n        \"changeIndicator\": \"BECMG\",\n        \"timeBecoming\": \"2020-12-19T12:00:00Z\",\n        \"wind\": {\n          \"directinDegrees\": \"340\",\n          \"speedKt\": \"10\"\n        },\n        \"visibilityStatuteMi\": \"6.21\",\n        \"skyCondition\": {}\n      }\n    ]\n  }\n]\n```\n\n## License\n\nMIT ©\n","readmeFilename":"README.MD"}