Interactive example

Greeting API playground

Enter a name, choose punctuation, and activate the generate button to run createGreeting. The result is displayed below, and unexpected errors are reported next to the controls.

Create a greeting

Blank or whitespace-only input uses the library fallback name, friend.

Result

Hello, developer!

What this demonstrates

The playground imports the same root API used by package consumers. It demonstrates name trimming, blank-name fallback, and optional punctuation without private module imports.