string-utils-ai-lite 1.0.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.
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # string-utils-ai-lite
2
+
3
+ ## Installation
4
+ ```bash
5
+ npm install string-utils-ai-lite
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "string-utils-ai-lite",
3
+ "version": "1.0.0",
4
+ "description": "Utility functions for string processing with optional AI enhancements",
5
+ "main": "src/index.js",
6
+ "exports": {
7
+ ".": "./src/index.js"
8
+ },
9
+ "type": "module",
10
+ "files": [
11
+ "src/index.js",
12
+ "src/utils"
13
+ ],
14
+ "keywords": ["string", "utils", "ai", "nodejs"],
15
+ "author": "Mayank Sharma",
16
+ "license": "MIT",
17
+ "scripts": {}
18
+ }
package/src/index.js ADDED
@@ -0,0 +1,5 @@
1
+ import { capitalize } from "./utils/capitalize.js";
2
+
3
+ export {
4
+ capitalize
5
+ };
@@ -0,0 +1,7 @@
1
+ export function capitalize(str) {
2
+ if (typeof str !== "string") {
3
+ throw new TypeError("Input must be a string");
4
+ }
5
+
6
+ return str.charAt(0).toUpperCase() + str.slice(1);
7
+ }