CheckDay is a very simple and lightweight CLI package that checks weather, time, and timezone for a specific location. You can directly use it on your Console/Terminal.
npm i -g checkday
npm i checkday
or
yarn add checkday
checkday -a 'LocationNameHere'
or
checkday --address='LocationNameHere
Code above will return the weather status, temperature, current time, and timezone.
To check the version:
checkday --version
For Help:
checkday -h
-
Create a file, any name you want, inside your project. eg. checkday.js
-
Inside checkday.js, require the checkday module
const checkday = require('checkday');
- Then on your command-line type:
node checkday.js -a 'LocationNameHere'