String Manipulation Functions
A Node.js module providing various string manipulation functions to handle capitalization and text formatting.
Installation
Install the package via npm:
npm install string-case --save
Usage
const {
capitalize,
initCap,
capitalizeAndLowerCaseAllTheOthers,
initCapAndLowerCaseAllTheOthers,
} = require("string-case");
const capitalizedString = capitalize("hello");
const initCapitalizedString = initCap("hello world");
const modifiedString = capitalizeAndLowerCaseAllTheOthers("HeLlO");
const modifiedString = initCapAndLowerCaseAllTheOthers("HeLlO woRlD");
These functions provide various ways to manipulate strings, allowing for capitalization, initial capitalization of words, and specific casing of text based on your requirements.
Feel free to integrate these functions into your Node.js projects to handle string manipulations efficiently.