Skip to content

A package that provides various functions for manipulating strings, such as changing case and capitalization.

Notifications You must be signed in to change notification settings

hero-page/hero-string-manipulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ❣️🧞‍♀️

hero-string-manipulation 🦸‍♂️

A package that provides various functions for manipulating strings, such as changing case and capitalization.

📜 Table of Contents

📥 Installation

npm install hero-string-manipulation

🌟 Features

toUppercase

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.

toLowercase

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.

capitalizeWords

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.

👨‍💻 Author

Sam Chahine at Hero

Tests for capitalizeWords

capitalizeWords

Tests for toLowercase

toLowercase

Tests for toUppercase

toUppercase

Tests for capitalizeWords

capitalizeWords

Tests for toLowercase

toLowercase

Tests for toUppercase

toUppercase

About

A package that provides various functions for manipulating strings, such as changing case and capitalization.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published