diff --git a/README.md b/README.md index 5877b20..d0d608b 100644 --- a/README.md +++ b/README.md @@ -42,27 +42,43 @@ Whether you’re cleaning up user input, formatting identifiers, or ensuring con ## πŸ“¦ Installation +Using npm (recommended): + ```bash npm install string-utils-lite + ## πŸš€ Usage -You can use `string-utils-lite` in both **ES Modules** and **CommonJS** environments. +You can use string-utils-lite in multiple environments: + +ES Modules: -ES Modules import { capitalize, titleCase, toKebabCase } from 'string-utils-lite'; console.log(capitalize('hELLo')); // "Hello" console.log(titleCase('hELLO woRLD')); // "Hello World" console.log(toKebabCase('Hello World')); // "hello-world" -CommonJS +CommonJS: + const { capitalize, titleCase } = require('string-utils-lite'); console.log(capitalize('hELLo')); // "Hello" console.log(titleCase('foo bar')); // "Foo Bar" +CDN (Direct Browser Use): + +No installation required! Load from a CDN like esm.sh and use in the browser. For example: + + + ## πŸ“š API Reference | Function | Description | Example Input | Example Output | diff --git a/package-lock.json b/package-lock.json index 5e28f7b..13f7ada 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "string-utils-lite", - "version": "0.1.9", + "version": "0.1.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "string-utils-lite", - "version": "0.1.9", + "version": "0.1.10", "license": "MIT", "devDependencies": { "tsup": "~8.1.0", diff --git a/package.json b/package.json index 1460fb7..825f4ee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "string-utils-lite", - "version": "0.1.9", + "version": "0.1.10", "description": "Tiny string helpers: capitalize, titleCase, kebab-case, snake_case, camelCase, and PascalCase.", "keywords": [ "string",