1.0.10 • Published 2 years ago
@mxrtydluffy/string-lib v1.0.10
String Lab
Javascript library using strings!
Function List
Overview of avalible functions
capitalize(str): Capitalizes the first character of a given string.allCaps(str): Converts all characters in a string to uppercase.capitalizeWords(str): Capitalizes the first character of each word in a string.removeExtraSpaces(str): Removes extra spaces from a string and replaces multiple spaces with a single space.kebob(str, separator): Converts a string to kebab case (lowercase with hyphens).snake(str): Converts a string to snake case (lowercase with underscores).camelCase(str): Converts a string to camel case (lowercase first word, uppercase others).shift(str): Moves the first character of a string to the end.makeHashTag(str): Converts a string into an array of hash tags.isEmpty(str): Checks if a string is empty or contains only whitespace.
Installation
You can install this library using npm:
npm install string-lib1.0.10
2 years ago