mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
16 lines
503 B
TypeScript
16 lines
503 B
TypeScript
// Type definitions for md5 v2.1.0
|
|
// Project: https://github.com/pvorb/node-md5
|
|
// Definitions by: Bill Sourour <https://github.com/arcdev1>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="node" />
|
|
|
|
/**
|
|
* js function for hashing messages with MD5
|
|
*
|
|
* @param {(string | Buffer)} message - a string or buffer to hash
|
|
* @returns {string} the resultant MD5 hash of the given message
|
|
*/
|
|
declare function main(message: string | Buffer): string;
|
|
export = main;
|