0.1.0 • Published 7 years ago

unstyle v0.1.0

Weekly downloads
38
License
ISC
Repository
github
Last release
7 years ago

Unstyle

Build Test Coverage Code Climate Downloads Version Dependency Status

Sometimes, really great CLIs output really colorful content, to help you easily take in and unserstand the output at a glance. And sometimes, they don't provide a way to easily get rid of the colors. And sometimes, really great CLIs use third-party tools that output pretty colors, and forget to pass through the option to print plain text. And sometimes, you just don't care and you want those colors gone. And if all of those times are right now, then you have come to the right place.

Install

npm install --global unstyle

Profit

colorful-command | unstyle > output.txt

Want to capture stderr as well?

colorful-command 2>&1 | unstyle

But I just want to do it inside my app.

var unstyle = require('unstyle');
inputStream.pipe(unstyle()).pipe(outputStream);

What are streams? I have a string.

var unstyle = require('unstyle');
var cleanString = unstyle.string(dirtyString);
0.1.0

7 years ago

0.0.9

7 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago