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

0.0.4 • Public • Published

Installation

npm install --save @types/mute-stream

Summary

This package contains type definitions for mute-stream (https://github.com/isaacs/mute-stream#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mute-stream.

index.d.ts

/// <reference types="node" />

import { Duplex } from "stream";

declare namespace MuteStream {
    interface Options {
        /**
         * Set to a string to replace each character with the specified string when muted.
         * (So you can show **** instead of the password, for example.)
         */
        replace?: string | undefined;

        /**
         * If you are using a replacement char, and also using a prompt with a readline stream
         * (as for a Password: ***** input), then specify what the prompt is so that backspace
         * will work properly. Otherwise, pressing backspace will overwrite the prompt with the
         * replacement character, which is weird.
         */
        prompt?: string | undefined;
    }
}

declare class MuteStream extends Duplex {
    constructor(options?: MuteStream.Options);
    mute: () => void;
    unmute: () => void;
    isTTY: boolean;
}

export = MuteStream;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Adam Jarret.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.43,351,048ts5.8
0.0.43,351,048ts5.7
0.0.43,351,048latest
0.0.43,351,048ts4.5
0.0.43,351,048ts4.6
0.0.43,351,048ts4.7
0.0.43,351,048ts4.8
0.0.43,351,048ts4.9
0.0.43,351,048ts5.0
0.0.43,351,048ts5.1
0.0.43,351,048ts5.2
0.0.43,351,048ts5.3
0.0.43,351,048ts5.4
0.0.43,351,048ts5.5
0.0.43,351,048ts5.6
0.0.43,351,048ts5.9
0.0.1315,688ts3.6
0.0.1315,688ts3.7
0.0.1315,688ts3.8
0.0.1315,688ts3.9
0.0.1315,688ts4.0
0.0.1315,688ts4.1
0.0.1315,688ts4.2
0.0.1315,688ts4.3
0.0.1315,688ts4.4
0.0.025ts2.9
0.0.025ts3.0
0.0.025ts3.1
0.0.025ts3.2
0.0.025ts3.3
0.0.025ts3.4
0.0.025ts3.5

Version History

VersionDownloads (Last 7 Days)Published
0.0.43,351,048
0.0.32
0.0.210,199
0.0.1315,688
0.0.025

Package Sidebar

Install

npm i @types/mute-stream

Weekly Downloads

3,676,962

Version

0.0.4

License

MIT

Unpacked Size

4.5 kB

Total Files

5

Last publish

Collaborators

  • types