1.0.3 • Published 3 years ago

there_be_strings v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

String Library

GitHub license GitHub stars

  • capitalize() Have first character of a given string uppercase
    Example: hello world -> Hello world

  • allCaps() Have all characters in a given string uppercase Example: foo bar -> FOO BAR

  • capitalizeWords() First character of each word inside a string will be uppercased Example: do all the things -> Do All The Things

  • removeExtraSpaces() Removes all spaces from teh beginning and end of a string along with any extra spaces in between words of a string. If there was more than one space inbetween words it will be replaced by a single space

  • kabobCase() Remove extra spaces and replace spaces with the hyphen "-" while making all characters lowercase

  • snakeCase() Removes all extra spaces from a string, replaces all spaces inside the string with "-"

  • camelCase() Removes all extra spaces from a string, replaces all spaces inside the string with "_"

  • shift() This function will take in as a parameter the number of letters from the beginning of the string and append it to the end of the string.