@nomercy235/weather-app
A simple app which gives the weather for a location.
Last updated 2 years ago by nomercy235 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @nomercy235/weather-app 
SYNC missed versions from official npm registry.

Weather App

A simple weather app made in Node JS.

Uses the Google geocode and Open Weather APIs to retrive the location of an address and get the current weather for it. You will need to the keys from both of these APIs if you want to use this package.

If you want to use this as a script, create a file called env.js in the root directory which has the same structure as the provided example.

The same format must be provided if you use this as a package.

Usage

const weatherApp = require('@nomercy235/weather-app');

// address: string
// keys: { googleApiKey: string, forecastApiKey: string }
// options: { type: 'weather' | 'forecast', limit: number }  
weatherApp.getWeatherForAddress(address, keys, options)

Tests

TBA

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality (although there are none yet). Lint and test your code.

LICENSE

MIT

Current Tags

  • 1.2.4                                ...           latest (a year ago)

7 Versions

  • 1.2.4                                ...           a year ago
  • 1.2.3                                ...           2 years ago
  • 1.2.2                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 5
Dependencies (2)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |