{"_id":"@dylmye/flight-designator","_rev":"3-f586b6335d7a41dad687e803bd0240be","name":"@dylmye/flight-designator","dist-tags":{"latest":"4.1.3"},"versions":{"4.1.1":{"name":"@dylmye/flight-designator","version":"4.1.1","description":"Parse and construct flight designators - now with TypeScript","private":false,"homepage":"https://github.com/dylmye/node-flight-designator","contributors":[{"name":"Jonas Hermsmeier","email":"jhermsmeier@gmail.com","url":"https://jhermsmeier.de"},{"name":"Dylan Myers","url":"https://dylmye.me"}],"license":"MIT","keywords":["flight","designator","code","airline","number","iata","icao"],"main":"lib/flight-designator","scripts":{"test":"mocha","doc":"jsdoc2md 'lib/**/*.js' --separators --param-list-format list > doc/api-reference.md","build:dts":"tsc -p tsconfig.json"},"devDependencies":{"@tsconfig/node12":"^1.0.9","jsdoc-to-markdown":"^6.0.1","mocha":"^8.4.0","typescript":"^4.5.5"},"engines":{"node":">10.12.0"},"repository":{"type":"git","url":"https://github.com/dylmye/node-flight-designator.git"},"bugs":{"url":"https://github.com/dylmye/node-flight-designator/issues"},"licenseText":"# The MIT License (MIT)\nCopyright (c) 2015 Jonas Hermsmeier\nCopyright (c) 2022- Dylan Myers\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\nDAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE\nOR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@dylmye/flight-designator@4.1.1","dist":{"shasum":"7446634254ed7f2609ae72849bed2aaa05663fe4","integrity":"sha512-uiaZ7QgNlMQwVgzffXdNeA/Lyxx8YEnx9jE/211GjRUaeN0nn87aW0mEXMT6KDGskOnNL5+ebEiLd5RVyMYQFg==","tarball":"https://registry.npmjs.org/@dylmye/flight-designator/-/flight-designator-4.1.1.tgz","fileCount":7,"unpackedSize":8488,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFVy3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmovXQ/8DvWJBwBJO79vpWE1PxIAJ6LyVX5W/6j5rI3LaOJa8HyMt/p3\r\nRPSchUMTNlkbY/Z4bfLixMrCBTjaVpxuVmAIbZddUG/4uWEq69ODOvSxfxZs\r\nG+itWJejpqqYPXM12nvw9PMp3YnbbRKYsvXmM4qRi0+Zj3qU72YNKzUNk8vD\r\n7LvWN+S+ELrsx6Ci49SoI8zGR4L7w8gJF7ngglyAf8GDNLYUB0A0H2vt5xLe\r\njhiOEzlrRKf3JFRA8ZbDwwzZdHPphCPf+sxZqZkxYnLPIW4Jcl77l+afj7S1\r\nNUGCYc2u2dE90RLAxk30lROAS8B/BgAdNR3FkSjFXox9t8j2FxXnuGLIZKbm\r\nA8porpwwsWwM7eXJZFHGu4PG0wmr2tbKlGbXLhJYmjWYZJj5hJHR18jRqc6U\r\nblo9uXFVCKXDTUkTrghlrh2ohmkX7YCMYtMquD8gO1c4BDL0PRmbyyGzkpB7\r\nZfaJkjMZgifzuKuaQWK15iqbFOEkv56b4YG7m67VAGWCpwuaYym/a6H6w4Z3\r\nEmhetBHTXUn2hrK+71+eDjNinqeYAZ4fMe7zOJzqfmNpSwlIdCnueTHVZgcl\r\n8sYSmDprhkZvqz6SQyKE/MU37Zb18l9oNXpkPb3ArnETCnl/Zu4be+/kFNTh\r\nX/sF1cwS2npRNR0VIeYtkOKyR8xOSfp8EzU=\r\n=nPQ4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCo/lCXKczGGsSfznCkySLpGk0utFMcLcshTnUfLH+0jQIhAKi5rdHXa7w47FR4YxMyJ6TMDHkWGNOuWz1Kv/oDB9FP"}]},"_npmUser":{"name":"dylmye","email":"dgz4eworh096@opayq.com"},"directories":{},"maintainers":[{"name":"dylmye","email":"dgz4eworh096@opayq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flight-designator_4.1.1_1645567159519_0.9764782261551428"},"_hasShrinkwrap":false},"4.1.2":{"name":"@dylmye/flight-designator","version":"4.1.2","description":"Parse and construct flight designators - now with TypeScript","private":false,"homepage":"https://github.com/dylmye/node-flight-designator","contributors":[{"name":"Jonas Hermsmeier","email":"jhermsmeier@gmail.com","url":"https://jhermsmeier.de"},{"name":"Dylan Myers","url":"https://dylmye.me"}],"license":"MIT","keywords":["flight","designator","code","airline","number","iata","icao"],"main":"lib/flight-designator","types":"lib/flight-designator.d.ts","scripts":{"test":"mocha","build":"tsc","prepublish":"yarn build"},"devDependencies":{"@tsconfig/node12":"^1.0.9","@types/expect":"^24.3.0","@types/mocha":"^8.2.3","jsdoc-to-markdown":"^6.0.1","mocha":"^8.4.0","ts-mocha":"^9.0.2","typescript":"^4.5.5"},"engines":{"node":">10.12.0"},"repository":{"type":"git","url":"https://github.com/dylmye/node-flight-designator.git"},"bugs":{"url":"https://github.com/dylmye/node-flight-designator/issues"},"mocha":{"extension":["ts"],"spec":"test/**/*.spec.ts","require":"ts-mocha"},"licenseText":"# The MIT License (MIT)\nCopyright (c) 2015 Jonas Hermsmeier\nCopyright (c) 2022- Dylan Myers\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\nDAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE\nOR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@dylmye/flight-designator@4.1.2","dist":{"shasum":"334b02d87068b6f71b0944605b87460d6c1d4d93","integrity":"sha512-y0myrf8EosDM061BJixzPoZ254caPSc/JO7Sv/7rgx3UWeR0eFNebXznkVlG+bWyUh/W4BNQoKD3KcsU2zgArQ==","tarball":"https://registry.npmjs.org/@dylmye/flight-designator/-/flight-designator-4.1.2.tgz","fileCount":12,"unpackedSize":21295,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiGDNzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoPyg//VH9x/2RiGU5bRx2zxI3J684v6QZFp6Fiyg+AKJOwolCyeNF0\r\nQi1avQR3EC9WFLKhukXvNgbJ9Cx6CCHUdsu6pZZDJ8yOCmwiDfRFYi+XP3g1\r\nJVdijVz4/plr495TpCZ4hPrG4KgjxxBm8ZKLrf5Kqy5T7l4lia0VuDqc4wER\r\n6/EtwOI+EVSk6unN584wIXmNx4nQ4x7AG9Ut/cBL9Hvjm7rp/HssNBdEMRBp\r\nKzom1vZOy78pja48rYhi0WK/XrWSC9EUfOma8J64zrgyUB8BzlpiY6utYTkj\r\nLspbZRdZQ7masvtNtdmJnFECIQnUZT+9WA/glhdhZovrIQdoZgVeIzVm1u35\r\nw5dbFM1a0kdCA6KVr2s1gNGF1bsx1MXF3X9sk6SgHmMiYBJm1pvj77xiQsaY\r\nCz15NQFqgkz3dKhI6xB862IzVGArudaO5CnQUrpJGqVWAWB485dVj4oxCdCE\r\n1lQeYJ4DGVaOT814LJXzNM8lWTi8a7sdR/TDG17LNddUqgC2qPmQjMt0n9WT\r\nDbKyn6b+58Uubb/T5YY7+zuh/4uHOf9cWVYliiOoamRnk0WqjhYg0vlTpW3y\r\nwtUDOuSAKWO+zR5nZt+6zGwVHQRGhSRbZSlt9Q8FommkHm6qhi29aaD8ECJp\r\njTvdi13Twh012lAzaHzNsGnfS8EKAFT8JEQ=\r\n=0XCE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHAVZTdCeauEwpsQdFCp2C82YjulsqorpN7LOhlzS4bgAiEAhtjuw20tWiYNathwMBP+KTwYdB6Pg7LOqt9MLWWsj30="}]},"_npmUser":{"name":"dylmye","email":"dgz4eworh096@opayq.com"},"directories":{},"maintainers":[{"name":"dylmye","email":"dgz4eworh096@opayq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flight-designator_4.1.2_1645753202892_0.3307702315673844"},"_hasShrinkwrap":false},"4.1.3":{"name":"@dylmye/flight-designator","version":"4.1.3","description":"Parse and construct flight designators - now with TypeScript","private":false,"homepage":"https://github.com/dylmye/node-flight-designator","contributors":[{"name":"Jonas Hermsmeier","email":"jhermsmeier@gmail.com","url":"https://jhermsmeier.de"},{"name":"Dylan Myers","url":"https://dylmye.me"}],"license":"MIT","keywords":["flight","designator","code","airline","number","iata","icao"],"main":"lib/flight-designator","types":"lib/flight-designator.d.ts","scripts":{"test":"mocha","build":"tsc","prepublish":"yarn build"},"devDependencies":{"@tsconfig/node12":"^1.0.9","@types/expect":"^24.3.0","@types/mocha":"^8.2.3","mocha":"^8.4.0","ts-mocha":"^9.0.2","typescript":"^4.5.5"},"resolutions":{"mocha/nanoid":"3.1.32","mocha/wide-align":"1.1.5"},"engines":{"node":">10.12.0"},"repository":{"type":"git","url":"https://github.com/dylmye/node-flight-designator.git"},"bugs":{"url":"https://github.com/dylmye/node-flight-designator/issues"},"mocha":{"extension":["ts"],"spec":"test/**/*.spec.ts","require":"ts-mocha"},"licenseText":"# The MIT License (MIT)\nCopyright (c) 2015 Jonas Hermsmeier\nCopyright (c) 2022- Dylan Myers\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\nDAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE\nOR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@dylmye/flight-designator@4.1.3","dist":{"shasum":"fd4aad3f4bcca5cfc29bb657fc7a6937a35f61b3","integrity":"sha512-mfii+Rs+mDTsStymognumIyS7sEJVBIyw/P/EYwcpXnOgmdlhCKc3Lgx2rU5ohrCZcbM2BouG9CPwIcAyT1BOw==","tarball":"https://registry.npmjs.org/@dylmye/flight-designator/-/flight-designator-4.1.3.tgz","fileCount":12,"unpackedSize":21346,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiGDnHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmofHw/+JGjAzFWlmTg1rxNyxfUK0Ux+oD3rar7UC30auFMMlBNz27G1\r\nmY0DYv2/7pbgXRQevVlSddywtekjCtaRYOem48sEtjOuU2VKE6pUo2EIIs+e\r\nOCBZ6p2l5dxqRFn1awbUHpHBebnyvLYq7u6kzSM/C4NLzjp3rL3e2NqGYy5q\r\ndgBIKgmprk+m4d+zdqRyz8L8L3loqaEfUrTqqT3PS6cTpHirsyvGspnIxTeb\r\nnenZ8I+Jk6K5iRs9HXrDTYex6fWQr8PXSRXRRhTaSyIQGUmO9EtehE2BQ2Xp\r\nKd/Uw1IhF3nSvFMq0yUCQ9Vrhcs+r4p3U51fv/6qWR9Gw/obfrv8mdQVZ+vw\r\nf/9ReJ0tAUE4NNoxZ+ueExDz62Wn6VVQ7Faj+RGLmprw5oxQaZtgLJGOTV4J\r\nvlLsfvmBvIh/JmSRXjUzugj6MJD2hxAeRy7ieQZQ465Rk9IkxGvFDiUc0JNl\r\nQTK6Gkr6dfr8BVs77lJJjcBbHg++d9jjRzB8Vj1b9lBsQRnxCckdw13nvWMH\r\nXrzqKeo2weRp9ck/vGrcXMCLxBG27s4wZglMoQteOM36TP5FAi+2OQXhK3x1\r\nwMgPZBz3bmRb/O0s/OWhm4IqpQ7QCvuDHAlRx6Uoe2x1dXXWdYv9uEOzAVxW\r\ntJVvagQNVhVD0VZVwSZsibLb2QVEnfVnfOo=\r\n=GeFS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBkb3hSS3F3FI97OUeGU/nD8lBolmRfGzX97DJVfsNhhAiA9Yeq2HAA9xQY+OeoDn8gN6YJP7cGP7vCcpUkmYKTPeg=="}]},"_npmUser":{"name":"dylmye","email":"dgz4eworh096@opayq.com"},"directories":{},"maintainers":[{"name":"dylmye","email":"dgz4eworh096@opayq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flight-designator_4.1.3_1645754823317_0.04257223650798747"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-22T21:59:19.457Z","4.1.1":"2022-02-22T21:59:19.690Z","modified":"2022-04-05T06:17:33.690Z","4.1.2":"2022-02-25T01:40:03.073Z","4.1.3":"2022-02-25T02:07:03.448Z"},"maintainers":[{"name":"dylmye","email":"dgz4eworh096@opayq.com"}],"description":"Parse and construct flight designators - now with TypeScript","homepage":"https://github.com/dylmye/node-flight-designator","keywords":["flight","designator","code","airline","number","iata","icao"],"repository":{"type":"git","url":"https://github.com/dylmye/node-flight-designator.git"},"contributors":[{"name":"Jonas Hermsmeier","email":"jhermsmeier@gmail.com","url":"https://jhermsmeier.de"},{"name":"Dylan Myers","url":"https://dylmye.me"}],"bugs":{"url":"https://github.com/dylmye/node-flight-designator/issues"},"license":"MIT","readme":"# Flight Designator\n[![npm](https://img.shields.io/npm/v/@dylmye/flight-designator.svg?style=flat-square)](https://npmjs.com/package/flight-designator)\n[![npm license](https://img.shields.io/npm/l/@dylmye/flight-designator.svg?style=flat-square)](https://npmjs.com/package/flight-designator)\n[![npm downloads](https://img.shields.io/npm/dm/@dylmye/flight-designator.svg?style=flat-square)](https://npmjs.com/package/flight-designator)\n[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fdylmye%2Fnode-flight-designator%2Fbadge%3Fref%3Dmaster&style=flat-square)](https://actions-badge.atrox.dev/dylmye/node-flight-designator/goto?ref=master)\n\nA fork of Jonas Hermsmeier's Flight Designator validation, converted to TypeScript and ES6 classes. Requires Node 10 or above.\n\n## Install via [npm](https://npmjs.com) or [yarn](https://yarnpkg.com)\n\n```sh\n$ npm install --save @dylmye/flight-designator\n$ yarn add @dylmye/flight-designator\n```\n\n## Usage\n\n```ts\nimport FlightDesignator from \"@dylmye/flight-designator\";\n```\n\n## Parse\n\n```ts\nFlightDesignator.parse('U24511A') // OR\nnew FlightDesignator().parse('U24511A')\n> FlightDesignator {\n  airlineCode: 'U2',\n  flightNumber: 4511,\n  operationalSuffix: 'A'\n}\n```\n\n##### Validate\n\n```ts\nFlightDesignator.isValid('KLM0180')\n> true\n```\n\n```ts\nFlightDesignator.isValidAirlineCode('KLM')\n> true\n```\n\n```ts\nFlightDesignator.isValidFlightNumber('0180')\n> true\n```\n\n##### Construct & validate instance\n\n```ts\n// Construct a flight designator\nconst flight = new FlightDesignator('KLM', '645')\n> FlightDesignator {\n  airlineCode: 'KLM',\n  flightNumber: 645,\n  operationalSuffix: ''\n}\n// Check whether it's valid\nflight.isValid()\n> true\n```\n\n##### Format flight designators\n\n```ts\nFlightDesignator.format('u2 0350A')\n// Compact\n> 'U2350A'\n// With spaces\nFlightDesignator.format('u2 0350A', true)\n> 'U2 350 A'\n// With zero-padded flight number\nFlightDesignator.format('u2350A', true, true)\n> 'U2 0350 A'\n```\n\n```ts\nvar flight = new FlightDesignator('LH', 254, 'X')\n// Compact\nflight.toString()\n> 'LH254X'\n// With spaces\nflight.toString(true)\n> 'LH 254 X'\n// With zero-padded flight number\nflight.toString(true, true)\n> 'LH 0254 X'\n```\n","readmeFilename":"README.md"}