1.0.5 • Published 3 years ago

@maricode1111/string-manip v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

NPM Liibrary for String Mannipulations

This library include 10 functions to utilize Their names and functions are as follows:

  • capitalize()

    • makes the first character of a given string uppercase.
  • allCaps()

  • makes all characters uppercase.

  • capitalizeWords()

    • makes the first character of each word uppercase.
  • removeExtraSpaces()

    • Removes all spaces from the beginning and end of a String along with any extra spaces in the middle. If more than one space appears in the middle of a string it is replaced by a single space.
  • kebobCase() git push - Removes extra spaces and replaces spaces with the hyphen “-“, and makes all characters lowercase.

  • snakeCase()

    • Removes extra space and replaces spaces with an underscore “_”, and makes all characters lowercase.
  • camelCase()

    • Lowercases the first character of the first word. Then uppercases the first character of all other words, and removes all spaces.
  • shift()

    • this method will take the first character of a string and move to the end of a string.
  • makeHashTag(str)

    • This function converts the given string to a hash tag. A hash tag begins with # and no spaces. Each word in the phrase begins with an uppercase letter.
  • isEmpty(str)

    • Returns true if the given string is empty or contains only whitespace. White space includes: spaces, line returns, and tabs. These characters can be represented with: \n (new line) \r (carrige return), \t (tab).

Link to NPM and Instalation instructions

  • link new npm link coming soon
1.0.2

3 years ago

1.0.1

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago