String Master

A comprehensive Typescript library for advanced string manipulation, including case conversion, text formatting, slugification, and more.

String Master
is a powerful JavaScript/TypeScript library designed to simplify a wide range of string operations and manipulations. With a comprehensive set of utility classes, it provides tools for transforming text, converting between formats, compressing data, encoding and decoding strings, sanitizing input, searching efficiently, and analyzing content. Each utility class is designed to address specific needs, making
an all-in-one solution for developers handling string data.

Table of Contents

1. Installation

To install the
package, use npm or yarn:

2. Usage

1. CasingMaster

The CasingMaster class provides methods to convert strings to various cases, such as Camel Case, Snake Case, Pascal Case, and more.

2. ConversionMaster

The ConversionMaster class provides methods to convert strings to different types, such as from a string to hexadecimal, integer, or binary.

3. EmojiMaster

The EmojiMaster class helps find, replace, or manipulate emojis in strings.

4. EntropyMaster

The EntropyMaster class calculates the entropy of a string, useful for cryptography or information theory.

5. FrequencyMaster

The FrequencyMaster class analyzes the frequency of characters or words in a string.

6. InflectionMaster

The InflectionMaster class handles pluralization and singularization of words.
Examples:

7. InitialsMaster

The InitialsMaster class extracts initials from a string.
Examples:

8. ManipulationMaster

The ManipulationMaster class provides methods to perform various manipulations on strings, like reversing or shuffling.
Examples:

9. MaskingMaster

The MaskingMaster class masks parts of a string, such as credit card numbers or emails.
Examples:

10. ObfuscationMaster

The ObfuscationMaster class obfuscates and deobfuscates strings for privacy or security purposes.
Examples:

11. SanitizationMaster

The SanitizationMaster class provides methods to sanitize strings, removing unwanted characters or formatting.
Examples:

12. SearchMaster

The SearchMaster class provides methods for searching within strings, including fuzzy search and proximity search.
Examples:

13. SimilarityMaster

The SimilarityMaster class calculates the similarity between two strings using various algorithms like Jaccard, Levenshtein, and Jaro-Winkler.
Examples:

14. SlugMaster

The SlugMaster class converts strings to URL-friendly slugs.
Examples:

15. TemplateMaster

The TemplateMaster class allows for simple templating and string interpolation.
Examples:

16. TrimmingMaster

The TrimmingMaster class provides various methods for trimming whitespace or characters from strings.
Examples:

17. ValidationMaster

The ValidationMaster class validates strings against different rules, such as email or URL formats.
Examples:

3. Contributing

I welcome contributions from the community to help improve the library. Please follow the guidelines below to get started.

4. License

String Master is licensed under the MIT License. See the LICENSE file for more information. I look forward to hearing from you!