Log a message to the console and capture the stdin that is replied. Useful for ansi escape codes like Primary Device Attributes.
npm install replied
const replied = require("replied");
const ESC = "\u001B[";
(async () => {
const result = await replied(ESC + '0c'); // Primary device attributes
})();
Type: string
The message to log.
Type: object
Type: WriteStream
Default: process.stdout
The stdout to log to.
Type: ReadStream
Default: process.stdin
The stdin to capture.