1.0.2 • Published 3 years ago

anneka-string-lib v1.0.2

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

String-Lib npm

Description

npm library of string manipulation functions for FEW 2.1

Functions

capitalize(str) // Capitalize first letter of string

allCaps(str) // Capitalize entire string

capitalizeWords(str) // Capitalize first letter of each word

removeExtraSpace(str) // Remove extra spaces

kebabCase(str, sep = '-') // Removes extra spaces and replaces them with a hyphen (or given separator), makes characters lowercase

snakeCase(str) // Removes extra spaces and replaces them with an underscore, makes all characters lowercase

camelCase(str) // Lowercases the first character of the first word, uppercases the first character of all other words, removes all spaces

shift(str) // Take the first character of a string and move to the end of a string

makeHashTag(str) // Convert the given string to a hash tag

isEmpty(str) // Returns true if the given string is empty or contains only whitespace
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago