Hey devs! ๐ I just released a tiny, powerful package called case-text-utils โ a utility that helps you convert between string cases effortlessly.
๐ง Step 1: Install it
npm install case-text-utils
๐ง Step 2: Import what you need
import {
toCamel,
toSnake,
toKebab,
toPascal,
convertCase
} from 'case-text-utils';
โก Step 3: Use it (Examples)
toCamel('hello_world-text'); // โ "helloWorldText"
toSnake('helloWorldText'); // โ "hello_world_text"
toPascal('hello_world-text'); // โ "HelloWorldText"
_Or use the universal converter_:
convertCase('user_name-key', 'pascal');
// โ "UserNameKey"
โ Why use case-text-utils?
๐ชถ Just 2KB
๐ฆ Zero dependencies
๐งผ Clean ESM
๐ Works in both Node.js & browser
๐ One-liner conversions
๐ฆ NPM Link:- https://www.npmjs.com/package/case-text-utils
โญ If you find it useful, give it a try and star the repo!Feel free to share feedback or suggestions. ๐
Top comments (0)