A lightweight utility to get dynamic greeting messages based on the current time.
Install the package via npm or yarn:
yarn add @bytesberry/greetings
npm install @bytesberry/greetings
Method | Description |
---|---|
getGreeting() |
Returns a greeting message based on the current time. |
import getGreeting from "@bytesberry/greetings";
const greet = getGreeting();
console.log(greet);
The output will be a greeting message such as:
- "Good Morning" (if the current time is morning)
- "Good Afternoon" (if it's afternoon)
- "Good Evening" (if it's evening)
- Automatically detects the current time.
- Provides appropriate greetings dynamically.
- Lightweight and easy to integrate.
Start greeting your users dynamically with @bytesberry/greetings