1.0.1 β’ Published 10 months ago
@manaswinisasmal/utility-hub v1.0.1
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.