Getting Started
Installation
Quick start
Import the utilities you need:
Requirements
- Node.js 24+
- TypeScript 5.0+ (for type-level features)
Next steps
- Browse the API Reference for all available functions
- Read the Guides for common patterns
npm install my-libImport the utilities you need:
import { clamp, debounce, groupBy } from 'my-lib'
const value = clamp(150, 0, 100) // 100
const log = debounce(console.log, 300)
const groups = groupBy(
[
{ type: 'a', v: 1 },
{ type: 'b', v: 2 },
{ type: 'a', v: 3 },
],
(item) => item.type
)
// { a: [{ type: 'a', v: 1 }, { type: 'a', v: 3 }], b: [{ type: 'b', v: 2 }] }