Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@types/node-int64
Advanced tools
TypeScript definitions for node-int64
npm install --save @types/node-int64
This package contains type definitions for node-int64 (https://github.com/broofa/node-int64).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-int64.
/// <reference types="node" />
declare class Int64 {
static MAX_INT: number;
static MIN_INT: number;
public buffer: Buffer;
public offset: number;
constructor(buffer: Buffer, offset?: number);
constructor(array: Uint8Array, offset?: number);
constructor(str: string);
constructor(num: number);
constructor(hi: number, lo: number);
_2scomp(): void;
// setValue(string) - A hexidecimal string
setValue(str: string): void;
// setValue(number) - Number (throws if n is outside int64 range)
setValue(num: number): void;
// setValue(hi, lo) - Raw bits as two 32-bit values
setValue(hi: number, lo: number): void;
toNumber(allowImprecise?: boolean): number;
valueOf(): number;
toString(radix?: number): string;
toOctetString(separator?: string): string;
toBuffer(rawBuffer?: boolean): Buffer;
copy(targetBuffer: Buffer, targetOffset?: number): void;
compare(other: Int64): number;
equals(other: Int64): boolean;
inspect(): string;
}
export = Int64;
These definitions were written by Benno Dreissig, and Kevin Greene.
FAQs
TypeScript definitions for node-int64
The npm package @types/node-int64 receives a total of 66,358 weekly downloads. As such, @types/node-int64 popularity was classified as popular.
We found that @types/node-int64 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
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.