@types/shasum
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Installation

npm install --save @types/shasum

Summary

This package contains type definitions for shasum (https://github.com/dominictarr/shasum).

Details

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

index.d.ts

/**
 * Single function that return the sha1sum. Installing this is just a little bit quicker than reading the crypto documentation.
 *   var shasum = require('shasum')
 *   shasum(string || buffer || object)
 * It also works in the browser with browserify.
 */
declare function shasum(str: any, alg?: string | null, format?: "hex" | "latin1" | "base64"): string;

export = shasum;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by TeamworkGuy2.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/shasum

Weekly Downloads

614

Version

1.0.2

License

MIT

Unpacked Size

3.28 kB

Total Files

5

Last publish

Collaborators

  • types