1.2.1 • Published 5 years ago

@t0ri/strings v1.2.1

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

npm Build Status Coverage Status GitHub stars GitHub last commit GitHub issues number one badge number one badge GitHub commit activity

A String Library

from your friend Tori

:wave: :wave: :wave:

string.capitalize()

A capitalization method with many options.

let string = 'hello how are you'

string.capitalize('all') -> output: HELLO HOW ARE YOU

string.capitalize('firstLetter') -> output: Hello how are you

string.capitalize('allFirstLetter') -> output: Hello How Are You

string.clean()

A method that will clean spaces from your strings.

let string = ' hello how are you '

string.clean('trimSpaces') -> output: 'hello how are you'

string.clean('trimAllSpaces') -> output: 'hello how are you'

string.changeCase()

A method that will change the casing of your code.

let string = ' hello how are you?'

string.changeCase('kabob') -> output: hello-how-are-you

string.changeCase('snake') -> output: hello_how_are_you

string.changeCase('camel') -> output: helloHowAreYou

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago