ansi-colors
Advanced tools
Comparing version
@@ -99,3 +99,6 @@ 'use strict'; | ||
/* eslint-disable no-control-regex */ | ||
const re = colors.ansiRegex = /\u001b\[\d+m/gm; | ||
// this is a modified, optimized version of | ||
// https://github.com/chalk/ansi-regex (MIT License) | ||
const re = colors.ansiRegex = /[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g; | ||
colors.hasColor = colors.hasAnsi = str => { | ||
@@ -102,0 +105,0 @@ re.lastIndex = 0; |
{ | ||
"name": "ansi-colors", | ||
"description": "Easily add ANSI colors to your text and symbols in the terminal. A faster drop-in replacement for chalk, kleur and turbocolor (without the dependencies and rendering bugs).", | ||
"version": "3.2.3", | ||
"version": "3.2.4", | ||
"homepage": "https://github.com/doowb/ansi-colors", | ||
@@ -6,0 +6,0 @@ "author": "Brian Woodward (https://github.com/doowb)", |
@@ -1,2 +0,2 @@ | ||
# ansi-colors [](https://www.npmjs.com/package/ansi-colors) [](https://npmjs.org/package/ansi-colors) [](https://npmjs.org/package/ansi-colors) [](https://travis-ci.org/doowb/ansi-colors) [](https://ci.appveyor.com/project/doowb/ansi-colors) | ||
# ansi-colors [](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W8YFZ425KND68) [](https://www.npmjs.com/package/ansi-colors) [](https://npmjs.org/package/ansi-colors) [](https://npmjs.org/package/ansi-colors) [](https://travis-ci.org/doowb/ansi-colors) | ||
@@ -249,4 +249,4 @@ > Easily add ANSI colors to your text and symbols in the terminal. A faster drop-in replacement for chalk, kleur and turbocolor (without the dependencies and rendering bugs). | ||
| --- | --- | | ||
| 42 | [doowb](https://github.com/doowb) | | ||
| 38 | [jonschlinkert](https://github.com/jonschlinkert) | | ||
| 38 | [doowb](https://github.com/doowb) | | ||
| 6 | [lukeed](https://github.com/lukeed) | | ||
@@ -257,3 +257,2 @@ | 2 | [Silic0nS0ldier](https://github.com/Silic0nS0ldier) | | ||
| 1 | [madhavarshney](https://github.com/madhavarshney) | | ||
| 1 | [Weishi93](https://github.com/Weishi93) | | ||
| 1 | [chapterjason](https://github.com/chapterjason) | | ||
@@ -269,5 +268,11 @@ | ||
Please consider supporting me on Patreon, or [start your own Patreon page](https://patreon.com/invite/bxpbvm)! | ||
<a href="https://www.patreon.com/jonschlinkert"> | ||
<img src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" height="50"> | ||
</a> | ||
### License | ||
Copyright © 2018, [Brian Woodward](https://github.com/doowb). | ||
Copyright © 2019, [Brian Woodward](https://github.com/doowb). | ||
Released under the [MIT License](LICENSE). | ||
@@ -277,2 +282,2 @@ | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on December 03, 2018._ | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on March 03, 2019._ |
21197
1.89%284
0.71%279
1.82%