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.