Socket
Book a DemoInstallSign in
Socket

observ-debounce

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

observ-debounce

A debounced [observ](https://www.npmjs.com/package/observ) that will only notify every N milliseconds.

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

observ-debounce

A debounced observ that will only notify every N milliseconds.

Example


var Debounce = require('observ-debounce')

var debounce = Debounce(200) //5 times a second, max.

//register a listener
debounce(function (s) {
  console.log(s)
})

while(reallyFast)//update the value lots!
  debounce.set(newValue)


License

MIT

FAQs

Package last updated on 08 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts