This entire repository was created completely with AI, using the hero-ai-package-creator, which is open-source, uses GPT-4, and is written & maintained by Sam Chahine ❣️🧞♀️
A package that provides various functions for manipulating strings, such as changing case and capitalization.
npm install hero-string-manipulation
Convert the input string to uppercase. It handles different character sets (ASCII, Unicode) and empty strings. For example, given 'hello world', it returns 'HELLO WORLD'. If given an empty string (''), it returns an empty string without raising errors. It doesn't alter the original string.
Convert the input string to lowercase. It accommodates various character sets (ASCII, Unicode) and empty strings. For instance, given 'HELLO WORLD', it outputs 'hello world'. If provided with an empty string (''), it returns an empty string without raising errors. The original string remains unaltered.
Capitalize the first letter of each word in the input string. Handles strings with multiple spaces between words, strings with leading or trailing spaces, and empty strings. For example, given ' hello world ', it returns ' Hello World '. If given an empty string (''), it returns an empty string without raising errors. It doesn't modify the original string.
Sam Chahine at Hero