1.3.2 • Published 3 years ago

api-weather v1.3.2

Weekly downloads
486
License
ISC
Repository
github
Last release
3 years ago

Installation

Use npm to install api-weather.

npm i api-weather

Usage

Async/Await

const {getWeather} = require("api-weather");
async function gW(){
    const data = await getWeather("Mexico",key,lang,unit);
    console.log(data);
}

gW();

Promise

const {getWeather} = require("api-weather");

getWeather("Mexico",key,lang,unit).then(data=>{
    console.log(data);
});

This is a simple way to use. The param Key it should be the api key from https://openweathermap.org/ . And the param lang is the language of the output, by default is english. The param unit is the unit for the degrees, it can be F,C or K;

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

1.3.2

3 years ago

1.3.1

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago