1.0.0 • Published 2 years ago
datetimegreeter v1.0.0
DateTimeGreeter
- It shows you date and time and greets you based on that.
- It contains one function greet(), which you can call without any arguments, and it will return String output.
How to Use
- Install the package:
# terminal
npm install datetimegreeter
- Your app.js file:
// app.js
var greeter = require('datetimegreeter');
console.log(greeter());
- Output in terminal:
# terminal
Good Afternoon! Today is Thu Feb 17 2022 and current time is 14:42:20 GMT+0530 (India Standard Time).
1.0.0
2 years ago