Neo's Playing Morpheus
Introducing npm Teams! Private packages + team management tools.Learn more »

strmgk

4.7.11 • 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

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
sudo 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!

Authors or Acknowledgments

License

This project is licensed under the MIT License

Install

npm i strmgk

DownloadsWeekly Downloads

25

Version

4.7.11

License

MIT

Unpacked Size

8.38 kB

Total Files

5

Last publish

Collaborators

  • avatar
  • avatar