@3alehi/good-time
v2.0.1
Published
Generate localized greeting messages based on the current time in multiple languages with npm package 'goodTime'. Supports both 12-hour and 24-hour time formats. Ideal for adding internationalized greetings to Node.js applications.
Downloads
94
Maintainers
Keywords
Readme
HourlyHello 🕒
Make your users' experience more engaging and personalized with dynamic greetings based on the time of day! 🌟
Features
- 🕒 Personalized greetings based on the time.
- 🌆 Dynamic messages that change as the day progresses.
- 🌟 Easy-to-use API for integrating greetings into your applications. support 20 languge
Installation
You can install HourlyHello via npm:
npm i @3alehi/good-time
Support Languge
en: English
fr: French
es: Spanish
de: German
zh: Chinese (Mandarin)
jp: Japanese
ru: Russian
it: Italian
pt: Portuguese
ar: Arabic
hi: Hindi
ko: Korean
nl: Dutch
sv: Swedish
no: Norwegian
da: Danish
fi: Finnish
tr: Turkish
he: Hebrew
pl: Polish
fa: Persian
Usage Languge
// if your languge is english use this function
const goodTime = require('goodTime');
console.log(goodTime.en());
// if your languge is persian use this function
const goodTime = require('goodTime');
console.log(goodTime.fa());
// and more languge example
Usage
Here's how you can use HourlyHello in your JavaScript project:
// time automatice is set the functcion goodTime
// time => 12 Am
const goodTime = require('goodTime');
console.log(goodTime.en());
// in the log Good morning!
Here's how you can use HourlyHello in your React or Vue project:
// time automatice is set the functcion goodTime
// time => 12 Am
import {goodTime} from "..."
console.log(goodTime.en());
// in the log Good morning!
Examples
Here are some examples of greetings you might receive:
- Good morning! 🌅
- Hello there! 👋
- Good evening! 🌆
Issues
If you encounter any issues with the library or have suggestions for improvements, please open an issue on our Issue Tracker.