
Security News
/Research
Fake Corepack Site Distributes Infostealer and Proxyware to Developers
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.
@types/kill-port
Advanced tools
TypeScript definitions for kill-port
npm install --save @types/kill-port
This package contains type definitions for kill-port (https://github.com/tiaanduplessis/kill-port).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/kill-port.
/// <reference types="node" />
import type { SuccessfulExec } from "shell-exec";
export = killPort;
/**
* Kill the process running on given port.
*
* @param port Port where the process is running.
* @param protocol Protocol for the port.
*
* @example
* import kill = require('kill-port')
* import * as http from 'http';
* const port = 8080
*
* const server = http.createServer((req, res) => {
* res.writeHead(200, {
* 'Content-Type': 'text/plain'
* })
*
* res.end('Hi!')
* })
*
* server.listen(port, () => {
* setTimeout(() => {
* // Currently you can kill ports running on TCP or UDP protocols
* kill(port, 'tcp')
* .then(console.log)
* .catch(console.log)
* }, 1000)
* })
*/
declare function killPort(
port: number,
/** @default 'tcp' */
protocol?: "tcp" | "udp",
): Promise<SuccessfulExec>;
These definitions were written by BendingBender.
FAQs
TypeScript definitions for kill-port
The npm package @types/kill-port receives a total of 40,215 weekly downloads. As such, @types/kill-port popularity was classified as popular.
We found that @types/kill-port 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.

Security News
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.