lutilsjs

    1.1.1 • Public • Published

    lutilsjs

    Git: https://github.com/loitd/lutilsjs
    NPM: https://www.npmjs.com/package/lutilsjs
    Web: https://inneka.com

    Installation

    npm install --save lutilsjs
    or
    yarn install lutilsjs

    Usage

    Import

    var lutils = require('lutilsjs');
    or
    var {print, getLocationId} = require('./index');

    Calling

    lutils.getWeatherFromLocation('vaannaam').then((wea)=>{
        lutils.print(wea); 
    }).catch((e) => {
        lutils.print(e);
    });
    

    or
    const 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 }
    

    Install

    npm i lutilsjs

    DownloadsWeekly Downloads

    0

    Version

    1.1.1

    License

    ISC

    Unpacked Size

    6.77 kB

    Total Files

    6

    Last publish

    Collaborators

    • loitd