@types/bcrypt-nodejs
Advanced tools
| // Type definitions for bcrypt-nodejs | ||
| // Project: https://github.com/shaneGirish/bcrypt-nodejs | ||
| // Definitions by: David Broder-Rodgers <https://github.com/DavidBR-SW/> | ||
| // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
| /** | ||
| * Generate a salt synchronously | ||
| * @param rounds Number of rounds to process the data for (default - 10) | ||
| * @return Generated salt | ||
| */ | ||
| export declare function genSaltSync(rounds?: number): string; | ||
| /** | ||
| * Generate a salt asynchronously | ||
| * @param rounds Number of rounds to process the data for (default - 10) | ||
| * @param callback Callback with error and resulting salt, to be fired once the salt has been generated | ||
| */ | ||
| export declare function genSalt(rounds: number, callback: (error: Error, result: string) => void): void; | ||
| /** | ||
| * Generate a hash synchronously | ||
| * @param data Data to be encrypted | ||
| * @param salt Salt to be used in encryption (default - new salt generated with 10 rounds) | ||
| * @return Generated hash | ||
| */ | ||
| export declare function hashSync(data: string, salt?: string): string; | ||
| /** | ||
| * Generate a hash asynchronously | ||
| * @param data Data to be encrypted | ||
| * @param salt Salt to be used in encryption | ||
| * @param callback Callback with error and hashed result, to be fired once the data has been encrypted | ||
| */ | ||
| export declare function hash(data: string, salt: string, callback: (error: Error, result: string) => void): void; | ||
| /** | ||
| * Generate a hash asynchronously | ||
| * @param data Data to be encrypted | ||
| * @param salt Salt to be used in encryption | ||
| * @param progressCallback Callback to be fired multiple times during the hash calculation to signify progress | ||
| * @param callback Callback with error and hashed result, to be fired once the data has been encrypted | ||
| */ | ||
| export declare function hash(data: string, salt: string, progressCallback: () => void, callback: (error: Error, result: string) => void): void; | ||
| /** | ||
| * Compares data with a hash synchronously | ||
| * @param data Data to be compared | ||
| * @param hash Hash to be compared to | ||
| * @return true if matching, false otherwise | ||
| */ | ||
| export declare function compareSync(data: string, hash: string): boolean; | ||
| /** | ||
| * Compares data with a hash asynchronously | ||
| * @param data Data to be compared | ||
| * @param hash Hash to be compared to | ||
| * @param callback Callback with error and match result, to be fired once the data has been compared | ||
| */ | ||
| export declare function compare(data: string, hash: string, callback: (error: Error, result: boolean) => void): void; | ||
| /** | ||
| * Get number of rounds used for hash | ||
| * @param hash Hash from which the number of rounds used should be extracted | ||
| * @return number of rounds used to encrypt a given hash | ||
| */ | ||
| export declare function getRounds(hash: string): number; |
| { | ||
| "name": "@types/bcrypt-nodejs", | ||
| "version": "0.0.30", | ||
| "description": "TypeScript definitions for bcrypt-nodejs", | ||
| "license": "MIT", | ||
| "author": "David Broder-Rodgers <https://github.com/DavidBR-SW/>", | ||
| "main": "", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
| }, | ||
| "scripts": {}, | ||
| "dependencies": {}, | ||
| "typings": "index.d.ts", | ||
| "typesPublisherContentHash": "8ca5e7730bacfc7f8826d578dc13d39ece97a8dd5f35984bee8e951f83b1d24f" | ||
| } |
| # Installation | ||
| > `npm install --save @types/bcrypt-nodejs` | ||
| # Summary | ||
| This package contains type definitions for bcrypt-nodejs (https://github.com/shaneGirish/bcrypt-nodejs). | ||
| # Details | ||
| Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/bcrypt-nodejs | ||
| Additional Details | ||
| * Last updated: Mon, 19 Sep 2016 16:15:23 GMT | ||
| * File structure: ProperModule | ||
| * Library Dependencies: none | ||
| * Module Dependencies: none | ||
| * Global values: none | ||
| # Credits | ||
| These definitions were written by David Broder-Rodgers <https://github.com/DavidBR-SW/>. |
| { | ||
| "authors": "David Broder-Rodgers <https://github.com/DavidBR-SW/>", | ||
| "definitionFilename": "index.d.ts", | ||
| "libraryDependencies": [], | ||
| "moduleDependencies": [], | ||
| "libraryMajorVersion": "0", | ||
| "libraryMinorVersion": "0", | ||
| "libraryName": "bcrypt-nodejs", | ||
| "typingsPackageName": "bcrypt-nodejs", | ||
| "projectName": "https://github.com/shaneGirish/bcrypt-nodejs", | ||
| "sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped", | ||
| "sourceBranch": "types-2.0", | ||
| "kind": "ProperModule", | ||
| "globals": [], | ||
| "declaredModules": [ | ||
| "bcrypt-nodejs" | ||
| ], | ||
| "files": [ | ||
| "index.d.ts" | ||
| ], | ||
| "hasPackageJson": false, | ||
| "contentHash": "8ca5e7730bacfc7f8826d578dc13d39ece97a8dd5f35984bee8e951f83b1d24f" | ||
| } |
-67
| // Type definitions for bcrypt-nodejs | ||
| // Project: https://github.com/shaneGirish/bcrypt-nodejs | ||
| // Definitions by: David Broder-Rodgers <https://github.com/DavidBR-SW/> | ||
| // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
| /** | ||
| * Generate a salt synchronously | ||
| * @param rounds Number of rounds to process the data for (default - 10) | ||
| * @return Generated salt | ||
| */ | ||
| export declare function genSaltSync(rounds?: number): string; | ||
| /** | ||
| * Generate a salt asynchronously | ||
| * @param rounds Number of rounds to process the data for (default - 10) | ||
| * @param callback Callback with error and resulting salt, to be fired once the salt has been generated | ||
| */ | ||
| export declare function genSalt(rounds: number, callback: (error: Error, result: string) => void): void; | ||
| /** | ||
| * Generate a hash synchronously | ||
| * @param data Data to be encrypted | ||
| * @param salt Salt to be used in encryption (default - new salt generated with 10 rounds) | ||
| * @return Generated hash | ||
| */ | ||
| export declare function hashSync(data: string, salt?: string): string; | ||
| /** | ||
| * Generate a hash asynchronously | ||
| * @param data Data to be encrypted | ||
| * @param salt Salt to be used in encryption | ||
| * @param callback Callback with error and hashed result, to be fired once the data has been encrypted | ||
| */ | ||
| export declare function hash(data: string, salt: string, callback: (error: Error, result: string) => void): void; | ||
| /** | ||
| * Generate a hash asynchronously | ||
| * @param data Data to be encrypted | ||
| * @param salt Salt to be used in encryption | ||
| * @param progressCallback Callback to be fired multiple times during the hash calculation to signify progress | ||
| * @param callback Callback with error and hashed result, to be fired once the data has been encrypted | ||
| */ | ||
| export declare function hash(data: string, salt: string, progressCallback: () => void, callback: (error: Error, result: string) => void): void; | ||
| /** | ||
| * Compares data with a hash synchronously | ||
| * @param data Data to be compared | ||
| * @param hash Hash to be compared to | ||
| * @return true if matching, false otherwise | ||
| */ | ||
| export declare function compareSync(data: string, hash: string): boolean; | ||
| /** | ||
| * Compares data with a hash asynchronously | ||
| * @param data Data to be compared | ||
| * @param hash Hash to be compared to | ||
| * @param callback Callback with error and match result, to be fired once the data has been compared | ||
| */ | ||
| export declare function compare(data: string, hash: string, callback: (error: Error, result: boolean) => void): void; | ||
| /** | ||
| * Get number of rounds used for hash | ||
| * @param hash Hash from which the number of rounds used should be extracted | ||
| * @return number of rounds used to encrypt a given hash | ||
| */ | ||
| export declare function getRounds(hash: string): number; |
-15
| { | ||
| "name": "@types/bcrypt-nodejs", | ||
| "version": "0.0.29", | ||
| "description": "TypeScript definitions for bcrypt-nodejs", | ||
| "main": "", | ||
| "scripts": {}, | ||
| "author": "David Broder-Rodgers <https://github.com/DavidBR-SW/>", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
| }, | ||
| "license": "MIT", | ||
| "typings": "index.d.ts", | ||
| "dependencies": {} | ||
| } |
-18
| # Installation | ||
| > `npm install --save @types/bcrypt-nodejs` | ||
| # Summary | ||
| This package contains type definitions for bcrypt-nodejs (https://github.com/shaneGirish/bcrypt-nodejs). | ||
| # Details | ||
| Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/bcrypt-nodejs | ||
| Additional Details | ||
| * Last updated: Thu, 14 Jul 2016 13:52:35 GMT | ||
| * File structure: ProperModule | ||
| * Library Dependencies: none | ||
| * Module Dependencies: none | ||
| * Global values: none | ||
| # Credits | ||
| These definitions were written by David Broder-Rodgers <https://github.com/DavidBR-SW/>. |
| { | ||
| "authors": "David Broder-Rodgers <https://github.com/DavidBR-SW/>", | ||
| "definitionFilename": "index.d.ts", | ||
| "libraryDependencies": [], | ||
| "moduleDependencies": [], | ||
| "libraryMajorVersion": "0", | ||
| "libraryMinorVersion": "0", | ||
| "libraryName": "bcrypt-nodejs", | ||
| "typingsPackageName": "bcrypt-nodejs", | ||
| "projectName": "https://github.com/shaneGirish/bcrypt-nodejs", | ||
| "sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped", | ||
| "sourceBranch": "types-2.0", | ||
| "kind": "ProperModule", | ||
| "globals": [], | ||
| "declaredModules": [ | ||
| "bcrypt-nodejs" | ||
| ], | ||
| "files": [ | ||
| "index.d.ts" | ||
| ], | ||
| "contentHash": "8ca5e7730bacfc7f8826d578dc13d39ece97a8dd5f35984bee8e951f83b1d24f" | ||
| } |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4634
2.89%80
1.27%