Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@types/node-hid
Advanced tools
TypeScript definitions for node-hid
npm install --save @types/node-hid
This package contains type definitions for node-hid (https://github.com/node-hid/node-hid#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-hid.
/// <reference types="node" />
import { EventEmitter } from "events";
export interface Device {
vendorId: number;
productId: number;
path?: string | undefined;
serialNumber?: string | undefined;
manufacturer?: string | undefined;
product?: string | undefined;
release: number;
interface: number;
usagePage?: number | undefined;
usage?: number | undefined;
}
export class HID extends EventEmitter {
constructor(path: string);
constructor(vid: number, pid: number);
close(): void;
pause(): void;
read(callback: (err: any, data: number[]) => void): void;
readSync(): number[];
readTimeout(time_out: number): number[];
sendFeatureReport(data: number[] | Buffer): number;
getFeatureReport(report_id: number, report_length: number): number[];
resume(): void;
write(values: number[] | Buffer): number;
setNonBlocking(no_block: boolean): void;
}
export function devices(vid: number, pid: number): Device[];
export function devices(): Device[];
export function setDriverType(type: "hidraw" | "libusb"): void;
These definitions were written by Mohamed Hegazy, Robert Kiss, and Rob Moran.
FAQs
TypeScript definitions for node-hid
The npm package @types/node-hid receives a total of 8,768 weekly downloads. As such, @types/node-hid popularity was classified as popular.
We found that @types/node-hid 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.