1.3.1 • Published 11 months ago

str-text-utils v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

npm.io

str-text-utils

str-text-utils is a utility library for string manipulation, providing a set of functions to simplify common string operations such as converting to camelCase, capitalizing words, counting characters, checking for palindromes, reversing strings, and trimming whitespace.

🛠️ Installation

Install str-text-utils via npm:

npm install str-text-utils

⭐ Usage

Import the functions you need from str-text-utils:

NameUsageOutput
Capitalize WordscapitalizeWords('the quick brown fox')The Quick Brown Fox
Camel CasetoCamelCase('quick brown fox')quickBrownFox
Trim SpacestrimSpaces(' leading and trailing spaces ')leading and trailing spaces
Word CountwordCount('count the number of words')5
Reverse StringreverseString('desserts')stressed
PalindroneisPalindrome('A man a plan a canal Panama')true
Dot CasetoDotCase('dot case example')dot.case.example
Sentence CasetoSentenceCase('this is a sentence. another one here!')This is a sentence. Another one here!
Snake CasetoSnakeCase('Snake Case Example')snake_case_example
Kebab CasetoKebabCase('My String to Kebab Case')my-string-to-kebab-case
Pascal CasetoPascalCase('hello world')HelloWorld

🚀 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

✨ Documentation in VS Code

When using this package in Visual Studio Code, you can get more information about each method by hovering over it.

alt text

📃 LICENSE

This package in under MIT License.

1.3.1

11 months ago

1.3.0

11 months ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago