string-case-utils-pro
v1.0.2
Published
Advanced string case utilities compatible with Angular, Vite, and TypeScript.
Maintainers
Readme
string-case-utils-pro
🔠 A lightweight and TypeScript-friendly utility library to convert strings between various case formats.
Compatible with Angular, Vite, and other modern frameworks using ESM or CommonJS.
✅ Features
- ⚡ Angular-compatible (Vite + Webpack-friendly)
- ✨ TypeScript-first with full type declarations
- 📦 Includes
camelCase,snake_case,kebab-case,PascalCase, andTitle Caseconversions - 🌲 Tree-shakable and side-effect free
- 🚀 Built with ESM & CommonJS dual output
📦 Installation
npm install string-case-utils-pro🛠️ Usage in Angular
Import the methods you need:
import {
toCamelCase,
toSnakeCase,
toKebabCase,
toPascalCase,
toTitleCase,
} from "string-case-utils-pro";Use them in services/components:
console.log(toCamelCase("hello_world")); // "helloWorld"
console.log(toSnakeCase("helloWorld")); // "hello_world"
console.log(toKebabCase("Hello World")); // "hello-world"
console.log(toPascalCase("some_value_here")); // "SomeValueHere"
console.log(toTitleCase("hello-world_case")); // "Hello World Case"📚 API Reference
| Function | Description |
| ---------------- | ------------------------ |
| toCamelCase() | Converts to camelCase |
| toSnakeCase() | Converts to snake_case |
| toKebabCase() | Converts to kebab-case |
| toPascalCase() | Converts to PascalCase |
| toTitleCase() | Converts to Title Case |
🧪 Local Development
Clone or unzip the package, then:
npm install
npm run buildThis generates:
dist/index.js→ CommonJSdist/index.mjs→ ESMdist/index.d.ts→ TypeScript declarations
🔁 Version
1.0.1 — Angular-compatible build with dual module support and full string format conversions.
📄 License
MIT © 2025 Indrajit Saha
---