npm.io
1.0.2 • Published 2 years ago

@types/shasum

Licence
MIT
Version
1.0.2
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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 1536 GMT
  • Dependencies: none

Credits

These definitions were written by TeamworkGuy2.