Getting Started

Install your first UtilTools package in under a minute.

What you get with every package

  • Zero dependencies on free packages
  • Full TypeScript types included
  • Works in Node.js and the browser
  • ESM and CommonJS builds available
  • Tree-shakeable — only ship what you use
  • Semantic versioning with changelogs
1

Choose a package

Browse the packages list and pick the one that fits your need. Free packages have no sign-up required.

Browse packages
2

Install via npm

Add the package to your project with npm, yarn, or pnpm.

# npm
npm install @utiltools/core

# yarn
yarn add @utiltools/core

# pnpm
pnpm add @utiltools/core
3

Import and use

All packages are fully tree-shakeable — import just the functions you need.

import { chunk, debounce, deepClone } from '@utiltools/core';

// Split an array into chunks of 3
const pages = chunk([1, 2, 3, 4, 5, 6], 3);
// → [[1, 2, 3], [4, 5, 6]]

// Debounce a function call
const save = debounce(() => api.save(), 300);