@manaswinisasmal/utility-hub
v1.0.1
Published
A collection of JavaScript utility functions for arrays, strings, numbers, and more.
Maintainers
Readme
Utility Hub JS 🚀
A collection of useful JavaScript utility functions for string processing, arrays, numbers, and more.
📦 Installation
Install via npm:
npm i @manaswinisasmal/utility-hub
How to use it😀😀😀
# const {
# isEmpty, capitalize, truncate, randomNumber, formatDate,
# deepClone, uniqueArray, chunkArray, camelToSnake
# } = require("utility-hub-js");
# // Example Usage
# console.log(capitalize("hello")); // Output: Hello
# console.log(isEmpty([])); // Output: true
# console.log(truncate("Hello, world!", 5)); // Output: Hello...
# console.log(randomNumber(1, 10)); // Output: Random number between 1 and 10
# console.log(formatDate(new Date(), "DD-MM-YYYY")); // Output: 19-02-2025
🎯 Why Use Utility Hub JS?
✅ Lightweight: Minimal package size.
✅ Zero Dependencies: No external dependencies.
✅ Optimized & Fast: Efficient implementations of utility functions.
✅ Easy to Use: Simple and straightforward API.