🚀
Modern Build
Built with tsdown for modern development
Type-safe, Tree Shaking optimized, and developer-friendly
# Install
npm install @tofrankie/utils
# or
pnpm add @tofrankie/utils
# or
yarn add @tofrankie/utils// Use
import { debounce, throttle } from '@tofrankie/utils'
const debouncedFn = debounce(() => {
console.log('Debounced execution')
}, 300)
const throttledFn = throttle(() => {
console.log('Throttled execution')
}, 300)| Import Method | Bundle Size | Tree Shaking |
|---|---|---|
import { debounce } from '@tofrankie/utils' | ~0.5KB | ✅ |
import { debounce, throttle } from '@tofrankie/utils' | ~1.0KB | ✅ |
import * as utils from '@tofrankie/utils' | ~15KB | ❌ |
Try JavaScript Utils in your browser without installation: