Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(900)

Unified Diff: node_modules/vulcanize/node_modules/update-notifier/node_modules/string-length/node_modules/strip-ansi/node_modules/ansi-regex/readme.md

Issue 800513006: Added vulcanize under third_party/npm_modules (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: node_modules/vulcanize/node_modules/update-notifier/node_modules/string-length/node_modules/strip-ansi/node_modules/ansi-regex/readme.md
diff --git a/node_modules/vulcanize/node_modules/update-notifier/node_modules/string-length/node_modules/strip-ansi/node_modules/ansi-regex/readme.md b/node_modules/vulcanize/node_modules/update-notifier/node_modules/string-length/node_modules/strip-ansi/node_modules/ansi-regex/readme.md
new file mode 100644
index 0000000000000000000000000000000000000000..ae876e7292feb7ca76e8fe46d1438415dcc20a6a
--- /dev/null
+++ b/node_modules/vulcanize/node_modules/update-notifier/node_modules/string-length/node_modules/strip-ansi/node_modules/ansi-regex/readme.md
@@ -0,0 +1,33 @@
+# ansi-regex [![Build Status](https://travis-ci.org/sindresorhus/ansi-regex.svg?branch=master)](https://travis-ci.org/sindresorhus/ansi-regex)
+
+> Regular expression for matching [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)
+
+
+## Install
+
+```sh
+$ npm install --save ansi-regex
+```
+
+
+## Usage
+
+```js
+var ansiRegex = require('ansi-regex');
+
+ansiRegex().test('\u001b[4mcake\u001b[0m');
+//=> true
+
+ansiRegex().test('cake');
+//=> false
+
+'\u001b[4mcake\u001b[0m'.match(ansiRegex());
+//=> ['\u001b[4m', '\u001b[0m']
+```
+
+*It's a function so you can create multiple instances. Regexes with the global flag will have the `.lastIndex` property changed for each call to methods on the instance. Therefore reusing the instance with multiple calls will not work as expected for `.test()`.*
+
+
+## License
+
+MIT © [Sindre Sorhus](http://sindresorhus.com)

Powered by Google App Engine
This is Rietveld 408576698