JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q10418F
  • License MIT

A collection of handy string manipulation functions.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (str-text-utils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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:

    Name Usage Output
    Capitalize Words capitalizeWords('the quick brown fox') The Quick Brown Fox
    Camel Case toCamelCase('quick brown fox') quickBrownFox
    Trim Spaces trimSpaces(' leading and trailing spaces ') leading and trailing spaces
    Word Count wordCount('count the number of words') 5
    Reverse String reverseString('desserts') stressed
    Palindrone isPalindrome('A man a plan a canal Panama') true
    Dot Case toDotCase('dot case example') dot.case.example
    Sentence Case toSentenceCase('this is a sentence. another one here!') This is a sentence. Another one here!
    Snake Case toSnakeCase('Snake Case Example') snake_case_example
    Kebab Case toKebabCase('My String to Kebab Case') my-string-to-kebab-case

    🚀 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.