1.0.4 • Published 4 years ago
weatherhub v1.0.4
weatherhub
Hi there 👋
A module that makes it easy to get the Temperature for 7 Days, Location and State for anywhere in the world.
Install
You can install weatherhub from npm or yarn, provided a recent version of node.js is installed.
npm install weatherhub
yarn add weatherhub
Example
Here's a quick example of getting the weather for Ghaziabad:
const weatherhub = require('weatherhub');
const address = ''; // Ghaziabad
const access_token = ''; // token api.mapbox
const token = ''; // darksky token
// now(<Temperature with 7 Days, location, stateCode>) returns a Promise
const weather = weatherhub(address, access_token, token).then((results) => {
console.log(results);
});
Licence
(c) 2021 ISC.