
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@types/is-hotkey
Advanced tools
TypeScript definitions for is-hotkey
npm install --save @types/is-hotkey
This package contains type definitions for is-hotkey (https://github.com/ianstormtaylor/is-hotkey#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/is-hotkey.
// Type definitions for is-hotkey 0.1
// Project: https://github.com/ianstormtaylor/is-hotkey#readme
// Definitions by: Alex Kondratyuk <https://github.com/lynxtaa>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export interface KeyboardEventLike {
key: string;
which: number;
altKey: boolean;
ctrlKey: boolean;
metaKey: boolean;
shiftKey: boolean;
}
export interface HotKeyOptions {
byKey: boolean;
}
export interface HotKey {
which?: number | undefined;
key?: string | undefined;
altKey: boolean;
ctrlKey: boolean;
metaKey: boolean;
shiftKey: boolean;
}
/**
* Is hotkey?
*/
export function isHotkey(
hotkey: string | ReadonlyArray<string>,
options?: HotKeyOptions,
): (event: KeyboardEventLike) => boolean;
export function isHotkey(hotkey: string | ReadonlyArray<string>, event: KeyboardEventLike): boolean;
export function isHotkey(
hotkey: string | ReadonlyArray<string>,
options: HotKeyOptions,
event: KeyboardEventLike,
): boolean;
export function isCodeHotkey(hotkey: string | ReadonlyArray<string>): (event: KeyboardEventLike) => boolean;
export function isCodeHotkey(hotkey: string | ReadonlyArray<string>, event: KeyboardEventLike): boolean;
export function isKeyHotkey(hotkey: string | ReadonlyArray<string>): (event: KeyboardEventLike) => boolean;
export function isKeyHotkey(hotkey: string | ReadonlyArray<string>, event: KeyboardEventLike): boolean;
/**
* Parse.
*/
export function parseHotkey(hotkey: string, options?: HotKeyOptions): HotKey;
/**
* Compare.
*/
export function compareHotkey(object: HotKey, event: KeyboardEventLike): boolean;
/**
* Utils.
*/
export function toKeyCode(name: string): number;
export function toKeyName(name: string): string;
/**
* Export.
*/
export default isHotkey;
These definitions were written by Alex Kondratyuk.
FAQs
TypeScript definitions for is-hotkey
The npm package @types/is-hotkey receives a total of 596,515 weekly downloads. As such, @types/is-hotkey popularity was classified as popular.
We found that @types/is-hotkey 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
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.