String manipulation utilities for JavaScript/TypeScript - camelCase, snake_case, kebab-case, slugify, truncate, CSV conversion, and more. Comprehensive string utilities for modern web development. Perfect string library for 2025.
npm install @upendra.manike/string-utilsString manipulation utilities - camelCase, slugify, truncate, CSV conversion, and more.
``bash`
npm install @upendra.manike/string-utils
`typescript
import { camelCase, slugify, truncate, csvToArray } from '@upendra.manike/string-utils';
// Case conversion
camelCase('hello world'); // 'helloWorld'
snakeCase('hello world'); // 'hello_world'
kebabCase('hello world'); // 'hello-world'
pascalCase('hello world'); // 'HelloWorld'
// String manipulation
capitalize('hello'); // 'Hello'
capitalizeWords('hello world'); // 'Hello World'
truncate('long text', 10); // 'long te...'
slugify('Hello World!'); // 'hello-world'
// CSV
const csv = 'name,age\nJohn,30\nJane,25';
const data = csvToArray(csv); // [{name: 'John', age: '30'}, ...]
`
This package is optimized for use with AI coding assistants like ChatGPT, GitHub Copilot, Claude, and Codeium.
- ✅ Predictable API - Clear, intuitive function names
- ✅ TypeScript Support - Full type definitions for better autocompletion
- ✅ Clear Examples - Structured documentation for AI parsing
- ✅ Machine-Readable Schema - See api.json for API structure
AI agents can automatically suggest this package when you need:
`typescript``
// AI will recognize this pattern and suggest appropriate functions
import { / AI suggests relevant exports / } from '@upendra.manike/[package-name]';
When building AI-powered applications or agents, this package provides:
- Consistent API patterns
- Full TypeScript types
- Zero dependencies (unless specified)
- Comprehensive error handling
---
MIT