{"version":3,"sources":["jsdelivr-header.js","/npm/xx-weather@1.0.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;ACJA,IAAI,MAAQ,QAAQ,SACpB,QAAQ,IAAI,QAAQ,MAEpB,IAAI,KAAO,CAAC,EAER,QAAQ,KAAK,KACf,KAAK,OAAS,CACZ,KAAM,QAAQ,KAAK,KAIvB,MAAM,IAAI,qCAAsC,MAC3C,MAAK,SAAU,GACd,QAAQ,IAAI,EAAS,MACrB,IAAI,EAAU,EAAS,KAAK,QAAQ,GAAG,aAAa,GACpD,QAAQ,IAAI,EAAQ,MACpB,QAAQ,IAAI,EAAQ,aACpB,QAAQ,IAAI,EAAQ,QAAU,IAAM,EAAQ,MAC5C,QAAQ,IAAI,SAAW,EAAS,KAAK,QAAQ,GAAG,KAClD,IACC,OAAM,SAAU,GACf,QAAQ,IAAI,MACd","file":"/npm/xx-weather@1.0.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/xx-weather@1.0.0/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","#!/usr/bin/env node\n\nvar axios = require(\"axios\")\nconsole.log(process.argv)\n\nvar data = {}\n\nif (process.argv[2]) {\n  data.params = {\n    city: process.argv[2]\n  }\n}\n\naxios.get(\"http://api.jirengu.com/weather.php\", data)\n    .then(function (response) {\n      console.log(response.data)\n      var weather = response.data.results[0].weather_data[0];\n      console.log(weather.date);\n      console.log(weather.temperature);\n      console.log(weather.weather + \",\" + weather.wind);\n      console.log(\"PM2.5:\" + response.data.results[0].pm25);\n    })\n    .catch(function (err) {\n      console.log(error);\n    })\n"]}