Terminal Tools

Class

Mute

Mute class to mute stdout.

Constructor

new Mute()

Source

Methods

clearOutput()

Clears the accumulated output.

Example

const mute = new Mute();
mute.clearOutput();

Source

getOutput() → {string}

Gets the accumulated output.

Returns

  • string

Example

const mute = new Mute();

Source

mute()

Mute stdout.

Example

const mute = new Mute();
mute.mute();

Source

unmute()

Unmute stdout.

Example

const mute = new Mute();
mute.unmute();

Source