Package Exports
- weather-underground-by-zip
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (weather-underground-by-zip) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
weather-underground-by-zip
Retrieve weather data for a specific zipcode. No API keys required! The name is a misnomer because the app no longer uses Weather Underground.
Installation
npm install weather-underground-by-zipUsage
const weather = require('weather-underground-by-zip')();
const zipcode = 90210;
await require("util").promisify(weather.request)(zipcode);
//{description: "Partly cloudy", location: "Beverly Hills, CA", temperature: 68, temperatureUnit: "F"}Running the tests
npm testLicense
MIT