Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/mute-stream

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/mute-stream - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

4

mute-stream/index.d.ts

@@ -16,3 +16,3 @@ // Type definitions for mute-stream 0.0

*/
replace?: string;
replace?: string | undefined;

@@ -25,3 +25,3 @@ /**

*/
prompt?: string;
prompt?: string | undefined;
}

@@ -28,0 +28,0 @@ }

{
"name": "@types/mute-stream",
"version": "0.0.0",
"version": "0.0.1",
"description": "TypeScript definitions for mute-stream",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mute-stream",
"license": "MIT",

@@ -24,4 +25,4 @@ "contributors": [

},
"typesPublisherContentHash": "76efd60b8debe19ebca3ddb9a01274213c8b02b5f0dbe29b46becc9258eb6180",
"typeScriptVersion": "2.9"
"typesPublisherContentHash": "28229df0407761178b388b8851ead4ed2f799b7883ad37549bee5f0c719433cb",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,44 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mute-stream.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mute-stream/index.d.ts)
````ts
// Type definitions for mute-stream 0.0
// Project: https://github.com/isaacs/mute-stream#readme
// Definitions by: Adam Jarret <https://github.com/adamjarret>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <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: Mon, 11 May 2020 23:20:27 GMT
* Last updated: Wed, 07 Jul 2021 00:01:45 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +53,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc