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.
Generate random Vietnamese greetings for various occasions. Themes include New Year, birthdays, and more. Easy to integrate and use in any Node.js project.
To install the package, run the following command in your project directory:
npm install @vietnamize/wishes
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');
newYear
: New Year greetingsbirthday
: Birthday greetingswedding
: Wedding greetingsgraduation
: Graduation greetings
friends
: Greetings for friendshigher_status
: Greetings for people of higher status (elder, boss, etc.)subordinates
: Greetings for subordinates (children, employees, etc.)