Sign In

@nomercy235/weather-app

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nomercy235/weather-app

A simple app which gives the weather for a location.

latest
Source
npmnpm
Version
1.2.4
Version published
Maintainers
1
Created
Source

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

Keywords

weather

FAQs

Package last updated on 09 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts