Badges:
First Javascript Library
This library helps you manipulate strings!
Function capitalizeFirstLetter
- Takes a string
- Returns the string with the first letter capitalized
Function allCaps
- Takes a string
- Returns the string with all the letters capitalized
Function capWords
- Takes a string
- returns and uses captializeFirstLetter to captialize each word in the string
Function removeXSpaces
- Takes a string
- returns and removes extra spaces fro around, and between the string
Function kebobCase
- Takes a string and a separator
- returns a new string, removes extra spaces and connects each string with a separator in this case a "-"
Function snakeCase
- Takes a string
- returns and uses kebob case to remove extra spaces and connect each string with a separator in this case a "_"
Function camelCase
- Takes a string
- returns a string that splits the string by each space, uses capWords to capitalize the first letter in each string
Function shift
- Takes a string and characterSpaces
- returns a new string where the characterSpaces are shifted
Function makeHashtag
- Takes a string
- returns an array of strings with a "#" in front of three largest strings
Function isEmpty
- Takes a string
- returns true if the string is empty, returns false if the string is full
You can download the hosted package from npm
npm i @justjoshriley/stringlib