
Research
npm Malware Targets Telegram Bot Developers with Persistent SSH Backdoors
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
use-debouncy
Advanced tools
🌀Small (120 bytes) debounce effect hook for React with TypeScript support
# NPM
npm install use-debouncy
# YARN
yarn add use-debouncy
import React, { useState } from 'react';
import useDebouncy from 'use-debouncy';
const App = () => {
const [value, setValue] = useState('');
useDebouncy(
() => fetchData(value), // function debounce
400, // number of milliseconds to delay
[value], // array values that the debounce depends (like as useEffect)
);
return (
<input value={value} onChange={(event) => setValue(event.target.value)} />
);
};
function useDebouncy(
fn: () => void | (() => void | undefined),
wait?: number,
deps?: any[],
): void;
Prop | Required | Default | Description |
---|---|---|---|
fn | ✓ | Debounce callback. | |
wait | 0 | Number of milliseconds to delay. | |
deps | [] | Array values that the debounce depends (like as useEffect). |
FAQs
🌀 Small (~0.2kb) debounce effect hook for React with TypeScript support
We found that use-debouncy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
Security News
pip, PDM, pip-audit, and the packaging library are already adding support for Python’s new lock file format.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.