@vietnamize/wishes
v1.1.0
Published
Generates random Vietnamese Greetings (lời chúc) based on different themes such as New Year, birthdays, and more.
Downloads
57
Readme
vietnamize-wishes
Node.js module that generates random Vietnamese greetings (lời chúc) based on different themes such as New Year, birthdays, and more. This package is designed to help developers integrate authentic Vietnamese greetings into their applications easily.
Features
Generate random Vietnamese greetings for various occasions. Themes include New Year, birthdays, and more. Easy to integrate and use in any Node.js project.
Installation
To install the package, run the following command in your project directory:
npm install @vietnamize/wishes
Usage
To use the package, import it into your project and call the getRandomWish
function to generate random wish. Here's an example:
const { getRandomWish } = require('@vietnamize/wishes');
const randomWish = getRandomWish();
console.log(randomWish);
Call the generateWish
function with the desired theme. Here's an example:
const { generateWish } = require('@vietnamize/wishes');
const newYearWish = generateWish('newYear');
console.log(newYearWish);
// You can also specify the recipient of the wish
const birthdayWish = generateWish('birthday', 'friends');
Themes
newYear
: New Year greetingsbirthday
: Birthday greetingswedding
: Wedding greetingsgraduation
: Graduation greetings
Recipient
friends
: Greetings for friendshigher_status
: Greetings for people of higher status (elder, boss, etc.)subordinates
: Greetings for subordinates (children, employees, etc.)