
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@types/create-hash
Advanced tools
TypeScript definitions for create-hash
npm install --save @types/create-hash
This package contains type definitions for create-hash (https://github.com/crypto-browserify/createHash).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/create-hash.
/// <reference types="node" />
declare namespace createHash {
type TypedArray =
| Uint8Array
| Uint8ClampedArray
| Uint16Array
| Uint32Array
| Int8Array
| Int16Array
| Int32Array
| Float32Array
| Float64Array;
interface HashAlgorithm {
digest(target: encoding): string;
digest(): Buffer;
update(data: string | Buffer | TypedArray | DataView, encoding?: string): this;
write(data: string | Buffer | TypedArray | DataView, encoding?: string): this;
end(): void;
read(): void;
}
type encoding = "utf8" | "hex" | "base64";
type algorithm =
| "md5"
| "rmd160"
| "ripemd160"
| "sha"
| "sha1"
| "sha224"
| "sha256"
| "sha384"
| "sha512";
}
declare function createHash(algorithm: createHash.algorithm, options?: any): createHash.HashAlgorithm;
export = createHash;
These definitions were written by BendingBender, Konstantin Yuriev, and Max Boguslavskiy.
FAQs
TypeScript definitions for create-hash
We found that @types/create-hash 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 Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.