greet-bro
v1.0.0
Published
A friendly and flexible greeting utility for developers π
Downloads
81
Maintainers
Readme
greet-bro π
A friendly and flexible greeting utility for developers.
This package generates a personalized greeting based on user input and the current time of day, with sensible default values.
Install
npm install greet-broUsage
import greetBro from "greet-bro";
greetBro({ name: "Divyam", mood: "hustle" });API
greetBro(options?)The function accepts one optional object parameter.
Options
Property Type Required Default Description
name string β No "Bro" Name to greet
mood string β No "chill" Mood of the greeting
useTimeGreeting boolean β No true Enables time-based greetingSupported moods
chill β Relax and enjoy coding π
hustle β Grind mode ON π₯
debug β May your bugs be shallow π
focus β Deep focus activated π§
If an unsupported mood is provided, it falls back to chill.
Examples
Default usage
greetBro();Output
Good evening, Bro! Relax and enjoy coding π
Custom name and mood
greetBro({ name: "Divyam", mood: "hustle" });Output
Good morning, Divyam! Grind mode ON π₯
Disable time-based greeting
greetBro({ useTimeGreeting: false });Output
Hey, Bro! Relax and enjoy coding πNotes
All options are optional
Safe default values are applied automatically
Requires Node.js 18+
ESM-only package
