New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@wetransfer/concorde-debounce

Package Overview
Dependencies
Maintainers
6
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@wetransfer/concorde-debounce

Debounce functions for regular and async functions.

1.3.1
unpublished
Source
npm
Version published
Weekly downloads
0
Maintainers
6
Weekly downloads
 
Created
Source

concorde-debounce

npm version

Debounce functions. Handy functions to debounce regular and async function executions.

Installation

npm install @wetransfer/concorde-cookie --save

Usage

In the browser

import { debounce } from '@wetransfer/concorde-debounce';

let counter = 0;
const debounced = debounce(() => counter++);

debounced();
debounced();
debounced();

console.log(counter); // => 1

On the server

const { debounce } = require('@wetransfer/concorde-debounce');

let counter = 0;
const debounced = debounce(() => counter++);

debounced();
debounced();
debounced();

console.log(counter); // => 1

Development

In case you want to develop/debug this module while integrating with other project, please follow these steps:

  • Run npm link to create a global symlink to that module
  • Run npm run build:watch to listen to changes and rebuild the module
  • Link to this module from your project with npm link @wetransfer/concorde-debounce

API

Check the available documentation on wetransfer.github.io.

Keywords

async

FAQs

Package last updated on 14 Feb 2018

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