SkillAgentSearch skills...

Tlence

debounce and throttle techniques for performance

Install / Use

/learn @behnammodi/Tlence
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

tlence

tlence

NPM

install size dependencies

<a href="https://www.npmjs.com/package/tlence"> <img src="https://img.shields.io/npm/v/tlence.svg" alt="Version"> </a> <a href="https://www.npmjs.com/package/tlence"> <img src="https://img.shields.io/npm/l/tlence.svg" alt="License"> </a> <a href="https://www.npmjs.com/package/tlence"> <img src="https://img.shields.io/npm/dm/tlence.svg" alt="Downloads"> </a> <a href="https://travis-ci.com/github/behnammodi/tlence"> <img src="https://travis-ci.com/behnammodi/tlence.svg?branch=master" alt="Build Status"> </a>

debounce and throttle techniques for performance

install

npm install tlence

use

Throttle

import { throttle } from 'tlence';

function log(server) {
  console.log('connecting to', server);
}

const throttleLog = throttle(log, 5000);
// just run first call to 5s
throttleLog('local');
throttleLog('local');
throttleLog('local');
throttleLog('local');
throttleLog('local');
throttleLog('local');

Debounce

import { debounce, delay } from 'tlence';
const debounceLog = debounce(log, 5000);
// just run last call to 5s
debounceLog('local');
debounceLog('local');
debounceLog('local');
debounceLog('local');
debounceLog('local');
debounceLog('local');

Delay

import { delay } from 'tlence';
console.log('delay 1');
await delay(5000);
// run after 5s
console.log('delay 2');

Related Skills

View on GitHub
GitHub Stars10
CategoryDevelopment
Updated1mo ago
Forks1

Languages

JavaScript

Security Score

95/100

Audited on Feb 23, 2026

No findings