New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

runjava

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

runjava - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

README.md

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc