essential-common-utils
v1.4.2
Published
A collection of essential utilities for various tasks
Downloads
4,256
Readme
Essential common utilities
A collection of essesntial utility functions for various common operations in JavaScript and TypeScript projects. The essential-common-utils
package provides a set of reusable functions for string manipulation, number formatting, URL extraction, and more.
Table of Contents
- Installation
- Usage
- Available Functions
- generateRandomArrayIndex
- trimAndRemoveSpaces
- extractUrlsFromText
- trimAndRemoveDoubleSpaces
- trimAndRemoveUnicodeCharacter
- normalizeWhitespace
- splitTextAndGetPart
- normalizeWhitespacesAndRemoveSoftHyphen
- capitalizeFirstWord
- convertToEuropeFormat
- getCamelCaseText
- getPascalCaseText
- getExecutionTime
- extractTextOnly
- trimToTwoDecimalPlaces
- Contributing
- License
Installation
You can install the package via npm:
npm install essential-common-utils
Usage Example
import { generateRandomArrayIndex } from 'essential-common-utils';
const randomIndex = generateRandomArrayIndex(10); // Generates a random index between 0 and 9
Contributing
Contributions are welcome! If you have any ideas, suggestions, or improvements, feel free to open an issue or fork the repo and submit a pull request.
License
This project is licensed under the MIT License.