A comprehensive JavaScript/TypeScript utility library that provides a collection of helper functions for Jagaad projects.
@jagaad/utils
is a collection of utility functions designed to simplify common programming tasks in JavaScript/TypeScript projects. The library provides a wide range of functions categorized by type (array, string, date, etc.) with proper TypeScript typing to enhance developer experience.
You can install the package using npm:
npm install @jagaad/utils
Import the entire library:
import { clamp } from '@jagaad/utils';
// Use any utility
const clampedValue = clamp(10, 20, 30);
Please browse the repository source code to know more about available utilities
Contributions are welcome! Please feel free to submit a Pull Request.
Note
Please make sure that you add only generic types and utilities.
Anything that is more specific, should live in the project repository itself.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
Please ensure your code follows the existing style and includes appropriate tests.
# Clone the repository
git clone https://github.com/jagaad/utils.js.git
cd utils.js
# Install dependencies
npm install
# Build the library
npm run build
This project is licensed under the MIT License - see the LICENSE file for details.
- Developed and maintained by the Jagaad Team
- Inspired by utility libraries like lodash, ramda, type-fest and others.