Skip to content
/ govna Public

Debounce, throttle, and tick wrappers to govern when a function executes.

Notifications You must be signed in to change notification settings

shanebo/govna

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

govna

Debounce, throttle, and tick wrappers to govern when a function executes. See helpful visual examples of what debounce, throttle, and tick do.

Install

npm install govna

Usage

import { debounce, throttle, tick } from 'govna';

const foo = (str) => str;
const delay = 200;

const debouncedFn = debounce(foo, delay);
const throttledFn = throttle(foo, delay);
const tickedFn = tick(foo);

debouncedFn('debounced');
throttledFn('throttled');
tickedFn('ticked');

About

Debounce, throttle, and tick wrappers to govern when a function executes.

Resources

Stars

Watchers

Forks

Packages

No packages published