@types/mute-stream
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4984
1
56