Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/taufik-nurrohman/tick
Utility functions to do time-related tasks.
https://github.com/taufik-nurrohman/tick
debounce delay interval node throttle tick time utility
Last synced: 25 days ago
JSON representation
Utility functions to do time-related tasks.
- Host: GitHub
- URL: https://github.com/taufik-nurrohman/tick
- Owner: taufik-nurrohman
- License: mit
- Created: 2021-05-02T13:14:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-08T04:30:07.000Z (about 2 years ago)
- Last Synced: 2024-05-02T00:23:57.782Z (6 months ago)
- Topics: debounce, delay, interval, node, throttle, tick, time, utility
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Time Utility
============Utility functions to do time-related tasks.
Usage
-----### CommonJS
~~~ js
const {debounce} = require('@taufik-nurrohman/tick');window.addEventListener('resize', debounce(e => {
console.log('Resize!');
}, 1000));
~~~### ECMAScript
~~~ js
import {debounce} from '@taufik-nurrohman/tick';window.addEventListener('resize', debounce(e => {
console.log('Resize!');
}, 1000));
~~~Methods
-------### debounce(then, time)
### delay(then, time)
### throttle(then, interval)