beautiful-text 0.0.1-security → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of beautiful-text might be problematic. Click here for more details.
- package/History.md +0 -0
- package/Makefile +11 -0
- package/Readme.md +40 -0
- package/component.js +1 -0
- package/component.json +15 -0
- package/index.js +1 -0
- package/lib/Palette.js +743 -0
- package/lib/browser-console.js +38 -0
- package/lib/misc.js +1060 -0
- package/lib/progressBar.js +837 -0
- package/lib/terminal-console.js +41 -0
- package/lib/termkit.js +275 -0
- package/package.json +13 -3
- package/start.json +14 -0
- package/test/color-console.js +11 -0
- package/test/index.jade +5 -0
- package/test/layout/default.jade +14 -0
- package/README.md +0 -5
@@ -0,0 +1,38 @@
|
|
1
|
+
/**
|
2
|
+
* Print colorful console text in browser
|
3
|
+
*/
|
4
|
+
exports.black = function (text) {
|
5
|
+
console.log('%c' + text, 'color: black;');
|
6
|
+
}
|
7
|
+
|
8
|
+
exports.red = function (text) {
|
9
|
+
console.log('%c' + text, 'color: red;');
|
10
|
+
}
|
11
|
+
|
12
|
+
exports.green = function (text) {
|
13
|
+
console.log('%c' + text, 'color: green;');
|
14
|
+
}
|
15
|
+
|
16
|
+
exports.yellow = function (text) {
|
17
|
+
console.log('%c' + text, 'color: yellow;');
|
18
|
+
}
|
19
|
+
|
20
|
+
exports.blue = function (text) {
|
21
|
+
console.log('%c' + text, 'color: blue;');
|
22
|
+
}
|
23
|
+
|
24
|
+
exports.magenta = function (text) {
|
25
|
+
console.log('%c' + text, 'color: magenta;');
|
26
|
+
}
|
27
|
+
|
28
|
+
exports.cyan = function (text) {
|
29
|
+
console.log('%c' + text, 'color: cyan;');
|
30
|
+
}
|
31
|
+
|
32
|
+
exports.white = function (text) {
|
33
|
+
console.log('%c' + text, 'color: white;');
|
34
|
+
}
|
35
|
+
|
36
|
+
exports.grey = function (text) {
|
37
|
+
console.log('%c' + text, 'color: grey;');
|
38
|
+
}
|