Miss any of our Open RFC calls?Watch the recordings here! »

replied

1.0.1 • Public • Published

replied Travis CI Build Status

Log a message to the console and capture the stdin that is replied. Useful for ansi escape codes like Primary Device Attributes.

NPM Badge

Install

npm install replied

Usage

const replied = require("replied");
 
const ESC = "\u001B[";
 
(async () => {
    const result = await replied(ESC + '0c'); // Primary device attributes
})();

API

replied(message, options?)

message

Type: string

The message to log.

options

Type: object

stdout

Type: WriteStream
Default: process.stdout

The stdout to log to.

stdin

Type: ReadStream
Default: process.stdin

The stdin to capture.

Install

npm i replied

DownloadsWeekly Downloads

5

Version

1.0.1

License

MIT

Unpacked Size

3.91 kB

Total Files

6

Last publish

Collaborators

  • avatar