aboutsummaryrefslogtreecommitdiff
path: root/node_modules/nodemon/lib/utils/colour.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-06-04 08:51:19 +0200
committerMinteck <contact@minteck.org>2022-06-04 08:51:19 +0200
commitb22f6770c8bd084d66950655203c61dd701b3d90 (patch)
tree873d7fb19584ec2709b95cc1ca05a1fc7cfd0fc4 /node_modules/nodemon/lib/utils/colour.js
parent383285ecd5292bf9a825e05904955b937de84cc9 (diff)
downloadequestriadb-b22f6770c8bd084d66950655203c61dd701b3d90.tar.gz
equestriadb-b22f6770c8bd084d66950655203c61dd701b3d90.tar.bz2
equestriadb-b22f6770c8bd084d66950655203c61dd701b3d90.zip
Remove node_modules
Diffstat (limited to 'node_modules/nodemon/lib/utils/colour.js')
-rw-r--r--node_modules/nodemon/lib/utils/colour.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/node_modules/nodemon/lib/utils/colour.js b/node_modules/nodemon/lib/utils/colour.js
deleted file mode 100644
index 8c1b590..0000000
--- a/node_modules/nodemon/lib/utils/colour.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * Encodes a string in a colour: red, yellow or green
- * @param {String} c colour to highlight in
- * @param {String} str the string to encode
- * @return {String} coloured string for terminal printing
- */
-function colour(c, str) {
- return (colour[c] || colour.black) + str + colour.black;
-}
-
-function strip(str) {
- re.lastIndex = 0; // reset position
- return str.replace(re, '');
-}
-
-colour.red = '\x1B[31m';
-colour.yellow = '\x1B[33m';
-colour.green = '\x1B[32m';
-colour.black = '\x1B[39m';
-
-var reStr = Object.keys(colour).map(key => colour[key]).join('|');
-var re = new RegExp(('(' + reStr + ')').replace(/\[/g, '\\['), 'g');
-
-colour.strip = strip;
-
-module.exports = colour;