Comparing version 0.0.1 to 0.0.2
31
index.js
@@ -6,24 +6,29 @@ #! /usr/bin/env node | ||
javac.stdout.on('data', function (data) { | ||
console.log('stdout: ' + data); | ||
javac.stderr.on('data', function (data) { | ||
console.log(data.toString()); | ||
}); | ||
javac.stderr.on('data', function (data) { | ||
console.log('stderr: ' + data); | ||
javac.on('close', function (code) { | ||
if(code === 0) { | ||
execute(); | ||
} | ||
else { | ||
console.log('Process exited with code ' + code); | ||
} | ||
}); | ||
javac.on('close', function (code) { | ||
function execute() { | ||
run = spawn('java', [process.argv[2]]); | ||
run.stdout.on('data', function (data) { | ||
console.log('stdout: ' + data); | ||
}); | ||
run.stdout.on('data', function (data) { | ||
console.log(data.toString()); | ||
}); | ||
run.stderr.on('data', function (data) { | ||
run.stderr.on('data', function (data) { | ||
console.log('stderr: ' + data); | ||
}); | ||
}); | ||
run.on('close', function (code) { | ||
run.on('close', function (code) { | ||
console.log('Process exited with code ' + code); | ||
}); | ||
}); | ||
}); | ||
} |
{ | ||
"name": "runjava", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A command line tool to compile a java source file and run it.", | ||
@@ -13,3 +13,6 @@ "scripts": { | ||
"author": "anubhav7495", | ||
"license": "ISC" | ||
"license": "ISC", | ||
"dependencies": { | ||
"yargs": "^3.29.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
17434
6
26
1
24
1
+ Addedyargs@^3.29.0
+ Addedansi-regex@2.1.1(transitive)
+ Addedcamelcase@2.1.1(transitive)
+ Addedcliui@3.2.0(transitive)
+ Addedcode-point-at@1.1.0(transitive)
+ Addeddecamelize@1.2.0(transitive)
+ Addedinvert-kv@1.0.0(transitive)
+ Addedis-fullwidth-code-point@1.0.0(transitive)
+ Addedlcid@1.0.0(transitive)
+ Addednumber-is-nan@1.0.1(transitive)
+ Addedos-locale@1.4.0(transitive)
+ Addedstring-width@1.0.2(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedwindow-size@0.1.4(transitive)
+ Addedwrap-ansi@2.1.0(transitive)
+ Addedy18n@3.2.2(transitive)
+ Addedyargs@3.32.0(transitive)