openweathermapapi

1.0.4 • Public • Published

OWM Api Module for Nodejs

install

You can install this Nodejs module trough npm by using this command add a --save behind if you want add this module to your dependencies in your package.json

npm i openweathermapapi

usage

this module is Promise based and you can find the result object in the example folder of this repo

example usage:

const WeatherApi  = require('openweathermapapi')
 
const City = "Your City here"
const ApiKey = "Your Api Key Here"
 
WeatherApi.byName(City, ApiKey)
    .then(result => {
            console.log(result.weather.advanced)
        }
    )
    .catch(console.error)

/openweathermapapi/

    Package Sidebar

    Install

    npm i openweathermapapi

    Weekly Downloads

    2

    Version

    1.0.4

    License

    MIT

    Last publish

    Collaborators

    • yukine