1 | # Installation
|
2 | > `npm install --save @types/getpass`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for getpass (https://github.com/arekinath/node-getpass#readme).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/getpass.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/getpass/index.d.ts)
|
10 | ````ts
|
11 | // Type definitions for getpass 0.1
|
12 | // Project: https://github.com/arekinath/node-getpass#readme
|
13 | // Definitions by: Claas Ahlrichs <https://github.com/claasahl>
|
14 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
15 |
|
16 | export interface Options {
|
17 | prompt?: string | undefined;
|
18 | }
|
19 |
|
20 | export interface Callback {
|
21 | (error: Error | null, password: string): void;
|
22 | }
|
23 |
|
24 | export function getPass(cb: Callback): void;
|
25 | export function getPass(options: Options, cb: Callback): void;
|
26 |
|
27 | ````
|
28 |
|
29 | ### Additional Details
|
30 | * Last updated: Tue, 06 Jul 2021 20:33:04 GMT
|
31 | * Dependencies: none
|
32 | * Global values: none
|
33 |
|
34 | # Credits
|
35 | These definitions were written by [Claas Ahlrichs](https://github.com/claasahl).
|
36 |
|
\ | No newline at end of file |