You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@types/sha256

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/sha256

TypeScript definitions for sha256

Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
26K
-22.05%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/sha256

Summary

This package contains type definitions for sha256 (https://github.com/cryptocoinjs/sha256).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sha256.

index.d.ts

/// <reference types="node" />

type Message = string | Buffer | number[];

interface Sha256 {
    (message: Message, options?: { asString: true }): string;
    (message: Message, options: { asBytes: true }): number[];
}

interface Sha256WithX2 extends Sha256 {
    x2: Sha256;
}

declare const sha256: Sha256WithX2;

export = sha256;

export as namespace sha256;

Additional Details

  • Last updated: Wed, 18 Oct 2023 11:45:06 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Nathan Hardy.

FAQs

Package last updated on 18 Oct 2023

Did you know?

Socket

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.

Install

Related posts