UNPKG

1.11 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/getpass`
3
4# Summary
5This package contains type definitions for getpass (https://github.com/arekinath/node-getpass#readme).
6
7# Details
8Files 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
16export interface Options {
17 prompt?: string | undefined;
18}
19
20export interface Callback {
21 (error: Error | null, password: string): void;
22}
23
24export function getPass(cb: Callback): void;
25export 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
35These definitions were written by [Claas Ahlrichs](https://github.com/claasahl).
36
\No newline at end of file