Skip to content

A Node CLI program which returns current time and weather

License

Notifications You must be signed in to change notification settings

ksharifbd/weathertime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weathertime is a node CLI program which returns current time and weather

How to run

  • Clone the repo
  • Go to the repo directory
  • run npm i
  • run node index.js --wak [api key for weather] --tak [api key for time] [list of cities or zip codes]

How to get the API keys

Example

Input

node index.js --wak weatherApiKey --tak timeApiKey london delhi

output

{ name: 'London',
  weather: 'Clouds',
  description: 'scattered clouds',
  time: '2019-02-12 04:26:31' }

{ name: 'Delhi',
  weather: 'Fog',
  description: 'fog',
  time: '2019-02-12 09:56:31' }

About

A Node CLI program which returns current time and weather

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published