JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q37759F
  • License MIT

simple weather underground call using zipcode

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

Build Status Coverage Status npm

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-zip

Usage

RunKit Example

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 test

License

MIT