@acelera/ts-string
v1.0.0
Published
Utility tool to manage and play with strings
Downloads
3
Readme
ts-string
`ts-string is a comprehensive TypeScript library for string manipulation and formatting. It offers a robust set of functions that cover a wide range of common and advanced string operations, making it ideal for developers who need to perform complex string manipulations efficiently and with ease.
Technology
Who Should Use
This library is perfect for JavaScript and TypeScript developers who frequently work with string formatting, parsing, or manipulation. Whether you're developing web applications, working with text data, or need to ensure text is formatted correctly for various uses, ts-string will be an invaluable addition to your toolkit.
Author
Marcus Yoda @marcusyoda
Installation
npm install ts-string
Or with Yarn:
yarn add ts-string
Functions Basic Usage
Camel Case - Converts strings to camelCase.
Capitalize - Capitalizes the first letter of a string.
Deslugify - Converts slugified strings back to a normal, readable format.
Kebab Case - Transforms strings into kebab-case.
Pascal Case - Converts strings to PascalCase.
Pluralize - Converts singular Portuguese words to their plural forms.
Singulate - Converts plural Portuguese words to their singular forms.
Slugify - Transforms strings into URL-friendly slugs.
Snake Case - Formats strings into snake_case.
Spaced Case - Converts strings to a format with spaces between words.
To Non-Accents - Removes accents and special characters from strings.
Testing
npm run test
Or with Yarn:
yarn test
Contributing
Contributions are always welcome! Feel free to open issues or pull requests if you'd like to improve or fix something in the library.
License
UNLICENSED