@zydon/common 2.6.89 → 2.6.91

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.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Extrai as iniciais de um nome ou texto
3
+ * @param name - Nome ou texto para extrair as iniciais
4
+ * @returns String com as iniciais (máximo 2 caracteres)
5
+ */
6
+ declare const getInitials: (name: string) => string;
7
+
8
+ export { getInitials };
@@ -0,0 +1,3 @@
1
+ var i=r=>{if(!r)return "";let t=r.trim().split(/\s+/);return t.length===1?t[0].substring(0,2).toUpperCase():t.slice(0,2).map(s=>s.charAt(0)).join("").toUpperCase()};
2
+
3
+ export { i as getInitials };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zydon/common",
3
- "version": "2.6.89",
3
+ "version": "2.6.91",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",