UNPKG

@chris5855/flighttracker

Version:

Flight status around the world, data provided by flightstats

13 lines (11 loc) 272 B
const { axios } = require("./common"); module.exports = ({ url, method }) => { return new Promise(async (resolve, reject) => { try { const { data } = await axios({ url, method }); resolve(data); } catch (error) { reject(error); } }); };