string-utils-package
v1.0.2
Published
A simple utility package for string transformations.
Readme
String Utilities Package
A simple utility package for string transformations.
Installation
npm install string-utils-package
const stringUtils = require("string-utils-package");
console.log(stringUtils.toCamelCase("hello world")); // "helloWorld"
console.log(stringUtils.toKebabCase("Hello World")); // "hello-world"
console.log(stringUtils.toSnakeCase("Hello World")); // "hello_world"
console.log(stringUtils.capitalizeWords("hello world")); // "Hello World"
console.log(stringUtils.reverseString("hello")); // "olleh"