A Webpack loader for OpenFlights-formatted data
This Webpack loader allows you to load OpenFlights formatted data.
Add loader to your Webpack config.
webpack.config.js:moduleexports =module:rules:test: /airports.dat$/iloader: 'openflights-loader'
Import and use. You can download data from here.console.logairports.name
If using TypeScript, you may add the following declaration for typed imports:declare
Note: This has been developed to suit my needs but additional use cases and contributions are very welcome.
MIT License - Copyright © Daniel Roe