
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
@types/kill-port
Advanced tools
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.
// Type definitions for kill-port 2.0
// Project: https://github.com/tiaanduplessis/kill-port
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <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 46,177 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
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.