Configuration

my-lib works out of the box with zero configuration. All functions are pure and stateless.

Tree shaking

my-lib is fully tree-shakeable. Import only what you need:

// Only `clamp` is included in your bundle
import { clamp } from 'my-lib'

Bundle size

FunctionMinifiedGzipped
clamp45 B38 B
debounce120 B95 B
groupBy150 B110 B
Total315 B243 B

ESM only

my-lib ships as ESM only. If your project uses CommonJS, you will need a bundler or the --experimental-vm-modules flag in Node.js.

{
  "type": "module"
}