@vgabriel45/demo-sdk 2.3.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +6 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -80,3 +80,9 @@ export function greetWithPrefix(prefix = "Welcome ...", name = "world", options
80
80
  const cleanPrefix = String(prefix ?? "").trim() || "Welcome";
81
81
  return `${cleanPrefix}: ${greet(name, options)}`;
82
82
  }
83
+
84
+ /** Build a multi-line welcome banner for onboarding screens. */
85
+ export function welcomeBanner(name = "world", { title = "Welcome" } = {}) {
86
+ const heading = String(title ?? "").trim() || "Welcome";
87
+ return `${heading}\n${greet(name)}`;
88
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vgabriel45/demo-sdk",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "private": false,
5
5
  "description": "Minimal publishable package for release pipeline sandbox testing",
6
6
  "main": "index.js",