@types/md5
Advanced tools
+3
-3
@@ -24,5 +24,5 @@ // Type definitions for md5 2.3 | ||
| interface Options { | ||
| asBytes?: boolean; | ||
| asString?: boolean; | ||
| encoding?: 'binary' | string; | ||
| asBytes?: boolean | undefined; | ||
| asString?: boolean | undefined; | ||
| encoding?: 'binary' | string | undefined; | ||
| } | ||
@@ -29,0 +29,0 @@ } |
+4
-3
| { | ||
| "name": "@types/md5", | ||
| "version": "2.3.0", | ||
| "version": "2.3.1", | ||
| "description": "TypeScript definitions for md5", | ||
| "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/md5", | ||
| "license": "MIT", | ||
@@ -39,4 +40,4 @@ "contributors": [ | ||
| }, | ||
| "typesPublisherContentHash": "299895b3432d3adb1d46e1739ff95903a45b00c37240bf6eeacf2d9c29c26382", | ||
| "typeScriptVersion": "3.4" | ||
| "typesPublisherContentHash": "56dc6dd2a4c8d45844cec11b895fffd678d0f8e8af834c163202ab09fac7f225", | ||
| "typeScriptVersion": "3.6" | ||
| } |
+35
-1
@@ -9,5 +9,39 @@ # Installation | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/md5. | ||
| ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/md5/index.d.ts) | ||
| ````ts | ||
| // Type definitions for md5 2.3 | ||
| // Project: https://github.com/pvorb/node-md5 | ||
| // Definitions by: Bill Sourour <https://github.com/arcdev1> | ||
| // Cameron Crothers <https://github.com/jprogrammer> | ||
| // Piotr Błażejewicz <https://github.com/peterblazejewicz> | ||
| // Ruslan Arkhipau <https://github.com/DethAriel> | ||
| // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
| /// <reference types="node" /> | ||
| /** | ||
| * js function for hashing messages with MD5 | ||
| * | ||
| * @param message - a string or buffer to hash | ||
| * @param options | ||
| * @returns the resultant MD5 hash of the given message | ||
| */ | ||
| declare function md5(message: string | Buffer | number[] | Uint8Array, options: md5.Options & { asBytes: true }): number[]; | ||
| declare function md5(message: string | Buffer | number[] | Uint8Array, options?: Pick<md5.Options, 'asString' | 'encoding'>): string; | ||
| declare function md5(message: string | Buffer | number[] | Uint8Array, options?: md5.Options): string | number[]; | ||
| declare namespace md5 { | ||
| interface Options { | ||
| asBytes?: boolean | undefined; | ||
| asString?: boolean | undefined; | ||
| encoding?: 'binary' | string | undefined; | ||
| } | ||
| } | ||
| export = md5; | ||
| ```` | ||
| ### Additional Details | ||
| * Last updated: Mon, 08 Feb 2021 08:22:47 GMT | ||
| * Last updated: Tue, 06 Jul 2021 22:03:02 GMT | ||
| * Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +48,0 @@ * Global values: none |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5631
34.58%0
-100%51
200%