Color Output Without Library

NodeJS Hard 4 views
Back to Questions

Problem Description

Print green text using ANSI codes only when stdout is TTY.

Input Format

No input.

Output Format

Print colored or plain.

Constraints

Use process.stdout.isTTY.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next