lutilsjs
v1.1.2
Published
A Loitd Utilities Library for JavaScripts
Downloads
19
Readme
lutilsjs
Git: https://github.com/loitd/lutilsjs
NPM: https://www.npmjs.com/package/lutilsjs
Web: https://inneka.com
Installation
npm install --save lutilsjs
oryarn add lutilsjs
Usage
View more here
Import
var lutils = require('lutilsjs');
orvar {print, getLocationId} = require('./index');
Calling
lutils.getWeatherFromLocation('vaannaam').then((wea)=>{
lutils.print(wea);
}).catch((e) => {
lutils.print(e);
});
orconst woeid = getLocationId('hà nội');
Sample output
{ title: 'Hà Nội',
parent: 'Vietnam',
weather_state_name: 'Heavy Rain',
applicable_date: '2019-06-25',
min_temp: 26.68,
max_temp: 35.120000000000005,
the_temp: 31.41 }