strmgk

4.9.0 • Public • Published

STRMGK

Methods

genericBadge licenseBadge

STRMGK is your full fledged library for all string operations at one place. It consists of all the basic string operations that developers use almost everyday in their code. I have tried to simplify the operations and keep it simple, subtle and easy to use.

Methods

  • trimSpaces(string): Removes all the spaces from a string
  • isSubstringPresent(string, substring): Returns true if the input string contains a given substring
  • toggleCase(string): Toggles the case in a given string.
  • reverseString(string): Reverses a given string
  • removeSpecialChars4mString(string): Removes all the special characters from an input string and returns a string with only [a-z][A-Z] characters.
  • capitalize(string): This method capitalizes a string. i.e; It changes the first alphabet of every word to upper case
  • equalIgnoreCase(string1, string2): This method compares two strings regardless of the case. It equates "hello" and "HELLO" as equal
  • camelCaseStringToRegularCaseString(string): This method convert camel case string into regular case string. For example "helloWorld" convert into "Hello World"
  • getStringWithoutSpecialCharacters(string): This method return string without any special characters. For example "Ginto &Joseph* 007" convert into "GintoJoseph007"

Install

npm install strmgk

Usage

const strmgk = require("strmgk");
let toggleStringCase = strmgk.toggleCase("TestString")

Testing

For testing, we have used Jest Javascript testing framework. To run the unit tests, use the below command in the root folder
npm run test

Contributing

Keep it simple. Keep it minimal. Don't put every single feature just because you can.

Take me to github! Take me to github!

Take me to github! Take me to github!

Authors or Acknowledgments

License

This project is licensed under the MIT License

Package Sidebar

Install

npm i strmgk

Weekly Downloads

18

Version

4.9.0

License

MIT

Unpacked Size

10.2 kB

Total Files

5

Last publish

Collaborators

  • aedel007
  • gintojoseph007