Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dbish6/lodash-debounce-tiny
A lightweight dependency as an alternative to lodash.debounce.
https://github.com/dbish6/lodash-debounce-tiny
debounce debouncing delay dependency javascript lodash npm npm-package typescript utility
Last synced: 24 days ago
JSON representation
A lightweight dependency as an alternative to lodash.debounce.
- Host: GitHub
- URL: https://github.com/dbish6/lodash-debounce-tiny
- Owner: dBish6
- License: mit
- Created: 2024-03-06T04:21:50.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-03-31T20:09:08.000Z (7 months ago)
- Last Synced: 2024-10-03T15:45:55.550Z (about 1 month ago)
- Topics: debounce, debouncing, delay, dependency, javascript, lodash, npm, npm-package, typescript, utility
- Language: TypeScript
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.txt
- License: LICENSE
Awesome Lists containing this project
README
# lodash-debounce-tiny
A lightweight alternative to lodash.debounce. This utility doesn't include all the bloat from lodash.debounce, all it does is delay invoking a function call until after the provided milliseconds.## Installation
```
$ npm i lodash-debounce-tiny
```## Example
```
import debounce from "lodash-debounce-tiny";function handleResize() {
// Do something.
}
window.addEventListener("resize", debounce(handleResize, 500));
```## Contributing
Contributions are welcome! Although I'd like to keep this package as small as possible since it is meant to be a tiny utility.### To Get Started
- Fork this repository.
- Create a new branch.
- install the dependencies with `npm install`.
- Do a `npm run test` to see if you're all set.
- For the dev environment, `npm run dev` and there you go!```
$ npm install
$ npm run test
$ npm run dev
```## License
This project is licensed under the [MIT](https://github.com/dBish6/lodash-debounce-tiny/blob/master/LICENSE) License.## Support Me
If you find this package helpful consider buying me a coffee, your support helps me stay motivated!