there_be_strings

1.0.3 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i there_be_strings

    Weekly Downloads

    1

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    6.03 kB

    Total Files

    5

    Last publish

    Collaborators

    • iro494