ansicolor
Advanced tools
Comparing version 1.0.67 to 1.0.68
{ | ||
"name": "ansicolor", | ||
"version": "1.0.67", | ||
"version": "1.0.68", | ||
"description": "The final solution to the ANSI color/style management. Works in browsers!", | ||
@@ -5,0 +5,0 @@ "main": "ansicolor.js", |
# ansicolor | ||
[![Build Status](https://travis-ci.org/xpl/ansicolor.svg?branch=master)](https://travis-ci.org/xpl/ansicolor) [![Coverage Status](https://coveralls.io/repos/github/xpl/ansicolor/badge.svg)](https://coveralls.io/github/xpl/ansicolor) [![npm](https://img.shields.io/npm/v/ansicolor.svg)](https://npmjs.com/package/ansicolor) [![devDependencies Status](https://david-dm.org/xpl/ansicolor/dev-status.svg)](https://david-dm.org/xpl/ansicolor?type=dev) | ||
[![Build Status](https://travis-ci.org/xpl/ansicolor.svg?branch=master)](https://travis-ci.org/xpl/ansicolor) [![Coverage Status](https://coveralls.io/repos/github/xpl/ansicolor/badge.svg)](https://coveralls.io/github/xpl/ansicolor) [![npm](https://img.shields.io/npm/v/ansicolor.svg)](https://npmjs.com/package/ansicolor) [![dependencies Status](https://david-dm.org/xpl/ansicolor/status.svg)](https://david-dm.org/xpl/ansicolor) [![devDependencies Status](https://david-dm.org/xpl/ansicolor/dev-status.svg)](https://david-dm.org/xpl/ansicolor?type=dev) | ||
@@ -14,3 +14,3 @@ A quality library for the ANSI color/style management. Small. Clean. No dependencies. | ||
- String coloring with ANSI escape codes | ||
- Solves the [style hierarchy problem](#why-another-one) (where other similar tools fail) | ||
- Solves the [style hierarchy problem](#why-another-one) (when other similar tools fail) | ||
- Parsing/removing ANSI style data from strings | ||
@@ -32,3 +32,3 @@ - Converting ANSI styles to CSS or a Chrome DevTools-compatible output | ||
WTF?! The `bar` word above should be rendered in red, but it's not! It sucks. That is because ANSI codes are linear, not hierarchical (as with XML/HTML). A special kind of magic is needed to make this work. **Ansicolor** does that magic for you: | ||
WTF?! The `bar` word above should be rendered in red, but it's not! That sucks. It's because ANSI codes are linear, not hierarchical (as with XML/HTML). A special kind of magic is needed to make this work. **Ansicolor** does that magic for you: | ||
@@ -110,3 +110,3 @@ ```javascript | ||
The `ansi.parse ()` method will return a pseudo-array of styled spans, you can iterate over it with a `for ... of` loop and convert it to an array with *spread operator*. Also, there's the `.spans` property for obtaining the already-spread array directly: | ||
The `ansi.parse ()` method will return a pseudo-array of styled spans, you can iterate over it with a `for ... of` loop and convert it to an array with the *spread operator* (`...`). Also, there's the `.spans` property for obtaining the already-spread array directly: | ||
@@ -113,0 +113,0 @@ ```javascript |
28849
35793