{"_id":"@airport-discovery/snowtam","name":"@airport-discovery/snowtam","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@airport-discovery/snowtam","version":"1.0.0","description":"SNOWTAM Decoder, and utilities for working with SNOWTAM data","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/snowtam.git"},"author":{"name":"Airport Discovery","email":"hello@airportdiscovery.com","url":"https://github.com/Airport-Discovery"},"license":"MIT","bugs":{"url":"https://github.com/Airport-Discovery/snowtam/issues"},"homepage":"https://github.com/Airport-Discovery/snowtam#readme","keywords":["snowtam","decoder","airport","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":{"moment":"^2.29.4"},"gitHead":"6e2ded7837e27c69a25e67619b2c828989602c69","_id":"@airport-discovery/snowtam@1.0.0","_nodeVersion":"16.14.1","_npmVersion":"8.5.0","dist":{"integrity":"sha512-AQ5GIeGZ8OAcAhEEoyh+KHeS7FUL9hTf8SyWSCseLHe+JmJmnWRWWF9AFCYNwMFkreeG7NyK3RY0utEL2eRLmg==","shasum":"6835a9db305b99fa115d0153eb44c9caf56f61dc","tarball":"https://registry.npmjs.org/@airport-discovery/snowtam/-/snowtam-1.0.0.tgz","fileCount":11,"unpackedSize":12210,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGsubsA+5xs3bGyw3x/K8LqrvP4fmdjGjwzlG7RMOBNQIhAO62h4Lmr6uSnBR9NOTJjMXM4vtKUDOg0pr8gZeGQ6ah"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRR4cACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVIg/+O4kbWg547Xj1Qa7z/liMfRqwVvEK5fzU+9aoVz/ifCM7Fbp4\r\nMvANkPehkv2dqXIIWQuMI5W3K4eEBKYrflUOWiaucD065ZOjoqLHmAygQOfS\r\n4RZJMZ7z+xh2j8cz8ftiaplJqk0eTi96a96ueb5QZRF3zEXEzH3CBURXZ/AV\r\nVMhPd0Wac+agYWkGznU4mjHR11wWP7pJs2czzD87PDLkLjwMn9YqFIXDtLkc\r\nBAKxxzugqzPBlj2ErdRkyvfl0cYkGYR8jzDNNghahhvhX+MdOljU9JgVogcL\r\nwEnRIQ1SxtC5QuRi7ApLrL+xOkP3TL0mdEO2Yv3nAsvrkeT1OtO0RBtiP2XS\r\n6sQfzrinTiS60EzsSYjE3fPdu1LkZDhUwCw21FTXvVAdX5QmhRLYwdM4H/fG\r\niFuERx+LpBAMu5XHuoZiQXTbs3jpwcwNRZvpazbKCsLxsBoTYOYACKDIkZNY\r\nT0/TsqDc4MAbT9rXW8SxCDQqACD1tp6prH7DxCtfy/95KmcJuPoIEih+8SpG\r\nQmkhg5vJwK6+4MruKV2+HnUQULl4X3nJG+4CMfzEo3EhQdR34qGpJv4gWLQN\r\nTx4LD3TsyskKV925CPNTE+OgnJtmQ+Qu1n3BVqg8cusi6LD6I9OZV/NiMSM2\r\n2JaJ6da694OWwNjcHoFu9R8Tn86MAEzwdF0=\r\n=OHZE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"hatemalimam","email":"me@hatemalimam.com"},"directories":{},"maintainers":[{"name":"hatemalimam","email":"me@hatemalimam.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/snowtam_1.0.0_1665474075900_0.9165600596116317"},"_hasShrinkwrap":false}},"time":{"created":"2022-10-11T07:41:15.688Z","1.0.0":"2022-10-11T07:41:16.057Z","modified":"2022-10-11T07:41:16.346Z"},"maintainers":[{"name":"hatemalimam","email":"me@hatemalimam.com"}],"description":"SNOWTAM Decoder, and utilities for working with SNOWTAM data","homepage":"https://github.com/Airport-Discovery/snowtam#readme","keywords":["snowtam","decoder","airport","metar","taf","aviation","weather","pilot","api"],"repository":{"type":"git","url":"git+https://github.com/Airport-Discovery/snowtam.git"},"author":{"name":"Airport Discovery","email":"hello@airportdiscovery.com","url":"https://github.com/Airport-Discovery"},"bugs":{"url":"https://github.com/Airport-Discovery/snowtam/issues"},"license":"MIT","readme":"# ❄️ SNOWTAM ✈️\n\nSNOWTAM Decoder, and utilities for working with SNOWTAM data\n\n## Installation\n\n```\nyarn add @airport-discovery/snowtam\n```\n\n## Usage\n\nFor now the module exposes one main function, `decode`, which accepts a SNOWTAM string.\n\n## `decode`\n\n```javascript\nconst snowtam = require('@airport-discovery/snowtam');\nconst result = snowtam.decode(`SWES0698 ESSB 12261815 COR (SNOWTAM 0698 \n        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                \n        T) RWY 12 BA 67/72/67. RWY 12 COVER 100 PERCENT. APRON SANDED.)\n        CREATED: 26 DEC 2019 18:32:00 SOURCE: EUECYIYN`);\n```\n\n## Output\n\nAn array of `SnowtamItem` objects, which are defined as follows:\n\n```json\n[\n  {\n    \"attr\": \"A\",\n    \"originalValue\": \"ESSB\",\n    \"name\": \"Aerodrome\",\n    \"value\": \"ESSB\"\n  },\n  {\n    \"attr\": \"B\",\n    \"originalValue\": \"12261815\",\n    \"name\": \"Observation date\",\n    \"value\": \"2022-12-26T18:15:00+03:00\"\n  },\n  {\n    \"attr\": \"C\",\n    \"originalValue\": \"12\",\n    \"name\": \"Runway\",\n    \"value\": \"12\"\n  },\n  {\n    \"attr\": \"D\",\n    \"originalValue\": \"2000\",\n    \"name\": \"Cleared runway length\",\n    \"value\": \"2000 meters\"\n  },\n  {\n    \"attr\": \"E\",\n    \"originalValue\": \"20R\",\n    \"name\": \"Cleared runway width\",\n    \"value\": \"20 meters cleared on the right\"\n  },\n  {\n    \"attr\": \"F\",\n    \"originalValue\": \"1/1/1\",\n    \"value\": \"Threshold DAMP / Mid runway DAMP / Roll out DAMP / \",\n    \"name\": \"Runway conditions\"\n  },\n  {\n    \"attr\": \"G\",\n    \"originalValue\": \"XX/XX/XX\",\n    \"value\": \"Threshold Not significant / Mid runway Not significant / Roll out Not significant / \",\n    \"name\": \"Average thickness\"\n  },\n  {\n    \"attr\": \"H\",\n    \"originalValue\": \"5/5/5\",\n    \"value\": \"Threshold POOR / Mid runway POOR / Roll out POOR / \",\n    \"name\": \"Friction coefficient\"\n  },\n  {\n    \"attr\": \"J\",\n    \"originalValue\": \"70/10L\",\n    \"name\": \"Critical Snow Banks\",\n    \"value\": \"Snow banks are 70 centimeters high and 10 meters from the Left edge of the runway.\"\n  },\n  {\n    \"attr\": \"T\",\n    \"originalValue\": \"RWY 12 BA 67/72/67. RWY 12 COVER 100 PERCENT. APRON SANDED.)  CREATED: 26 DEC 2019 18:32:00 SOURCE: EUECYIYN\",\n    \"name\": \"Notes\",\n    \"value\": \"RWY 12 BA 67/72/67. RWY 12 COVER 100 PERCENT. APRON SANDED.)  CREATED: 26 DEC 2019 18:32:00 SOURCE: EUECYIYN\"\n  }\n]\n```\n\n## License\n\nMIT ©\n","readmeFilename":"README.MD"}