npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mindraseugen/utility-kit

v1.1.0

Published

A lightweight JavaScript utility library for modern web development. Includes DOM manipulation, math operations, array utilities, string helpers, and general purpose functions. / Una libreria utility JavaScript leggera per lo sviluppo web moderno. Include

Downloads

304

Readme

Utility Kit

npm version License: MIT Tests: 339 passed TypeScript

A lightweight JavaScript utility library for modern web development.

A collection of 100 ready-to-use, categorized, and well-tested functions to speed up your web application development.

🚀 Installation

npm install @mindraseugen/utility-kit
# or
yarn add @mindraseugen/utility-kit
# or
pnpm add @mindraseugen/utility-kit

📦 Import

Full Import

import * as uk from '@mindraseugen/utility-kit';
uk.randomBgColor(document.body);
uk.calculateAverage([10, 20, 30]);

Category-based Import (Tree-shaking optimized)

import { randomBgColor, createEl, on, fadeIn, removeEl, toggleClass, hasClass, addClass, removeClass, getStyle, setStyle, scrollTo } from '@mindraseugen/utility-kit/dom';
import { calculateAverage, sum, findMax, findMin, round, calculatePercentage, isPrime, calculateHypotenuse, factorial, power, nthRoot, isInRange, clamp, randomFloat, toDegrees, toRadians, median, mode, standardDeviation, gcd, lcm, isEven, isOdd, toFixed, modulo, abs, ceil } from '@mindraseugen/utility-kit/math';
import { filterArray, sortArray, unique, shuffle, chunk, flatten, groupBy, keyBy, difference, intersection, union, without, first, last, tail, take, drop, compact, fill, range, concat, indexOf, lastIndexOf } from '@mindraseugen/utility-kit/array';
import { reverseString, countChars, capitalize, truncate, includesText, replaceText, camelCase, snakeCase, kebabCase, pascalCase, trimStart, trimEnd, repeat, words, startsWith, endsWith, padStart, padEnd, toLower, toUpper, trim, split, join, slice } from '@mindraseugen/utility-kit/string';
import { logColor, getType, generateId, randomInt, debounce, throttle, once, memoize, deepClone, deepEqual, isEmpty, isNull, isUndefined, sleep } from '@mindraseugen/utility-kit/utils';
import { select } from '@mindraseugen/utility-kit/shortcuts';

CDN (for browser)

<script src="https://unpkg.com/@mindraseugen/[email protected]/dist/utility-kit.min.js"></script>
<script>
  UtilityKit.randomBgColor(document.body);
</script>

📁 Categories

| Category | Functions | Description | |-----------|----------|-------------| | DOM | randomBgColor, createEl, on, fadeIn, removeEl, toggleClass, hasClass, addClass, removeClass, getStyle, setStyle, scrollTo | DOM manipulation and animations | | Math | calculateAverage, sum, findMax, findMin, round, calculatePercentage, isPrime, calculateHypotenuse, factorial, power, nthRoot, isInRange, clamp, randomFloat, toDegrees, toRadians, median, mode, standardDeviation, gcd, lcm, isEven, isOdd, toFixed, modulo, abs, ceil | Mathematical operations | | Array | filterArray, sortArray, unique, shuffle, chunk, flatten, groupBy, keyBy, difference, intersection, union, without, first, last, tail, take, drop, compact, fill, range, concat, indexOf, lastIndexOf | Array manipulation | | String | reverseString, countChars, capitalize, truncate, includesText, replaceText, camelCase, snakeCase, kebabCase, pascalCase, trimStart, trimEnd, repeat, words, startsWith, endsWith, padStart, padEnd, toLower, toUpper, trim, split, join, slice | String manipulation | | Utils | logColor, getType, generateId, randomInt, debounce, throttle, once, memoize, deepClone, deepEqual, isEmpty, isNull, isUndefined, sleep | General utilities | | Shortcuts | select | DOM element selection |

🎯 Usage Examples

React

import { randomBgColor } from '@mindraseugen/utility-kit';

function MyComponent() {
  return <div onClick={() => randomBgColor(document.body)}>Click me!</div>;
}

Vue

<script setup>
import { calculateAverage } from '@mindraseugen/utility-kit';
const average = calculateAverage([25, 30, 28]);
</script>
<template><p>Average: {{ average }}</p></template>

Vanilla JavaScript

import { generateId, randomInt } from '@mindraseugen/utility-kit';
const userId = generateId(16);
const randomNum = randomInt(1, 100);

🔧 Scripts

| Script | Description | |--------|-------------| | npm run build | Create bundles in /dist/ | | npm test | Run all tests | | npm run test:coverage | Run tests with coverage | | npm run dev | Build in watch mode |

📁 Project Structure

utility-kit/
├── src/                          # Source code
│   ├── dom/                      # DOM Functions
│   ├── math/                     # Math Functions
│   ├── array/                    # Array Functions
│   ├── string/                   # String Functions
│   ├── utils/                     # Utility Functions
│   ├── shortcuts/                # Shortcuts
│   └── index.js                  # Entry point
├── dist/                         # Build output
├── types/                       # TypeScript definitions
├── tests/                        # Unit tests
├── demo/                         # Interactive demos
├── package.json
├── rollup.config.js
├── tsconfig.json
└── README.md

🤝 Contributing

For detailed contribution guidelines, please see CONTRIBUTION.md.

For a quick start:

  1. Fork the repository
  2. Create a branch (git checkout -b feature/new-function)
  3. Add your function in src/ following the conventions
  4. Add tests in tests/
  5. Run npm run build && npm test
  6. Make a pull request

Note: You can also create new categories if you believe it improves organization.

📜 License

MIT License - see LICENSE for details.


Utility Kit - Versione Italiana

npm version License: MIT Tests: 339 passed TypeScript

Una libreria utility JavaScript leggera per lo sviluppo web moderno.

Una raccolta di 100 funzioni pronte all'uso, categorizzate e ben testate per accelerare lo sviluppo della tua applicazione web.

🚀 Installazione

npm install @mindraseugen/utility-kit
# o
yarn add @mindraseugen/utility-kit
# o
pnpm add @mindraseugen/utility-kit

📦 Importa

Importazione completa

import * as uk from '@mindraseugen/utility-kit';
uk.randomBgColor(document.body);
uk.calculateAverage([10, 20, 30]);

Importazione basata su categorie (ottimizzato per tree-shaking)

import { randomBgColor, createEl, on, fadeIn, removeEl, toggleClass, hasClass, addClass, removeClass, getStyle, setStyle, scrollTo } from '@mindraseugen/utility-kit/dom';
import { calculateAverage, sum, findMax, findMin, round, calculatePercentage, isPrime, calculateHypotenuse, factorial, power, nthRoot, isInRange, clamp, randomFloat, toDegrees, toRadians, median, mode, standardDeviation, gcd, lcm, isEven, isOdd, toFixed, modulo, abs, ceil } from '@mindraseugen/utility-kit/math';
import { filterArray, sortArray, unique, shuffle, chunk, flatten, groupBy, keyBy, difference, intersection, union, without, first, last, tail, take, drop, compact, fill, range, concat, indexOf, lastIndexOf } from '@mindraseugen/utility-kit/array';
import { reverseString, countChars, capitalize, truncate, includesText, replaceText, camelCase, snakeCase, kebabCase, pascalCase, trimStart, trimEnd, repeat, words, startsWith, endsWith, padStart, padEnd, toLower, toUpper, trim, split, join, slice } from '@mindraseugen/utility-kit/string';
import { logColor, getType, generateId, randomInt, debounce, throttle, once, memoize, deepClone, deepEqual, isEmpty, isNull, isUndefined, sleep } from '@mindraseugen/utility-kit/utils';
import { select } from '@mindraseugen/utility-kit/shortcuts';

CDN (per browser)

<script src="https://unpkg.com/@mindraseugen/[email protected]/dist/utility-kit.min.js"></script>
<script>
  UtilityKit.randomBgColor(document.body);
</script>

📁 Categorie

| Categoria | Funzioni | Descrizione | |-----------|----------|-------------| | DOM | randomBgColor, createEl, on, fadeIn, removeEl, toggleClass, hasClass, addClass, removeClass, getStyle, setStyle, scrollTo | Manipolazione DOM e animazioni | | Math | calculateAverage, sum, findMax, findMin, round, calculatePercentage, isPrime, calculateHypotenuse, factorial, power, nthRoot, isInRange, clamp, randomFloat, toDegrees, toRadians, median, mode, standardDeviation, gcd, lcm, isEven, isOdd, toFixed, modulo, abs, ceil | Operazioni matematiche | | Array | filterArray, sortArray, unique, shuffle, chunk, flatten, groupBy, keyBy, difference, intersection, union, without, first, last, tail, take, drop, compact, fill, range, concat, indexOf, lastIndexOf | Manipolazione array | | String | reverseString, countChars, capitalize, truncate, includesText, replaceText, camelCase, snakeCase, kebabCase, pascalCase, trimStart, trimEnd, repeat, words, startsWith, endsWith, padStart, padEnd, toLower, toUpper, trim, split, join, slice | Manipolazione stringhe | | Utils | logColor, getType, generateId, randomInt, debounce, throttle, once, memoize, deepClone, deepEqual, isEmpty, isNull, isUndefined, sleep | Utilità generiche | | Shortcuts | select | Selezione elementi DOM |

🎯 Esempi di utilizzo

React

import { randomBgColor } from '@mindraseugen/utility-kit';

function MyComponent() {
  return <div onClick={() => randomBgColor(document.body)}>Cliccami!</div>;
}

Vue

<script setup>
import { calculateAverage } from '@mindraseugen/utility-kit';
const average = calculateAverage([25, 30, 28]);
</script>
<template><p>Media: {{ average }}</p></template>

JavaScript puro

import { generateId, randomInt } from '@mindraseugen/utility-kit';
const userId = generateId(16);
const randomNum = randomInt(1, 100);

🔧 Script

| Script | Descrizione | |--------|-------------| | npm run build | Crea bundle in /dist/ | | npm test | Esegui tutti i test | | npm run test:coverage | Esegui test con coverage | | npm run dev | Build in modalità watch |

📁 Struttura del progetto

utility-kit/
├── src/                          # Codice sorgente
│   ├── dom/                      # Funzioni DOM
│   ├── math/                     # Funzioni Matematiche
│   ├── array/                    # Funzioni Array
│   ├── string/                   # Funzioni Stringhe
│   ├── utils/                     # Funzioni di Utilità
│   ├── shortcuts/                # Scorciatoie
│   └── index.js                  # Punto di ingresso
├── dist/                         # Output della build
├── types/                       # Definizioni TypeScript
├── tests/                        # Test unitari
├── demo/                         # Demo interattive
├── package.json
├── rollup.config.js
├── tsconfig.json
└── README.md

🤝 Contribuire

Per linee guida dettagliate, vedi CONTRIBUTION.md.

Per iniziare velocemente:

  1. Fai fork del repository
  2. Crea un branch (git checkout -b feature/new-function)
  3. Aggiungi la tua funzione in src/ seguendo le convenzioni
  4. Aggiungi test in tests/
  5. Esegui npm run build && npm test
  6. Fai una pull request

Nota: Puoi anche creare nuove categorie se ritieni che migliorino l'organizzazione.

📜 Licenza

Licenza MIT - vedi LICENSE per i dettagli.


Author: MindrasEugen Version: 1.0.0 Last updated: 2026-08-08