npm.io
0.1.3 • Published 2 years ago

@types/getpass

Licence
MIT
Version
0.1.3
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/getpass

Summary

This package contains type definitions for getpass (https://github.com/arekinath/node-getpass#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/getpass.

index.d.ts

export interface Options {
    prompt?: string | undefined;
}

export interface Callback {
    (error: Error | null, password: string): void;
}

export function getPass(cb: Callback): void;
export function getPass(options: Options, cb: Callback): void;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0337 GMT
  • Dependencies: none

Credits

These definitions were written by Claas Ahlrichs.