1.2.0 • Published 5 years ago

just-another-string-library v1.2.0

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

Just Another String Library

npm bundle size npm Build Status Coverage Status

A library that contains methods prompted by this assignment. This methods extend the String prototype.

Methods You Can Use in This Library

  1. capitalize() - capitalizes the first character of a string, if it is a letter
  2. allCaps() - capitalizes all letters in a string
  3. capitalizeWords() - capitalizes the first character of each word, if it is a letter
  4. oddCaps() - capitalizes all odd characters (first character is indexed at 0), if it is a letter
  5. evenCaps() - capitalizes all even characters (first character is indexed at 0), if it is a letter
  6. removeExtraSpaces() - trims the spacing at the start and end of a string and removes extra spacing between words
  7. kabobCase() - makes all characters lowercase, removes all spacing, and inserts a hyphen between each word
  8. snakeCase() - makes all characters lowercase, removes all spacing, and inserts an underscore between each word
  9. camelCase() - makes all characters lowercase, removes all spacing, and capitalizes the first character of each word except the first word