@types/getpass
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.1 • Public • Published

    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

    // Type definitions for getpass 0.1
    // Project: https://github.com/arekinath/node-getpass#readme
    // Definitions by: Claas Ahlrichs <https://github.com/claasahl>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    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, 06 Jul 2021 20:33:04 GMT
    • Dependencies: none
    • Global values: none

    Credits

    These definitions were written by Claas Ahlrichs.

    Keywords

    none

    Install

    npm i @types/getpass

    DownloadsWeekly Downloads

    148,973

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    3.52 kB

    Total Files

    4

    Last publish

    Collaborators

    • types