Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

java-home

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

java-home - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

17

lib/helper.js

@@ -16,18 +16,7 @@ /* ================================================================

var os = require('os');
var childProcess = require('child_process');
const xutil = require('xutil');
const childProcess = require('child_process');
var _ = {};
var _ = xutil.merge({}, xutil);
// get system platform
_.platform = (function() {
var platform = os.platform();
return {
isWindows: platform.indexOf('win') === 0 || platform === 'cygwin',
isLinux: platform === 'linux' || platform === 'freebsd',
isOSX: platform === 'darwin'
};
})();
_.exec = function(cmd, opts) {

@@ -34,0 +23,0 @@ return new Promise((resolve, reject) => {

12

package.json
{
"name": "java-home",
"version": "1.0.2",
"version": "1.0.3",
"description": "java-home",

@@ -17,9 +17,11 @@ "keywords": [

"dependencies": {
"xutil": "^1.0.2"
},
"devDependencies": {
"co-mocha": "^1.1.2",
"istanbul": "*",
"jshint": "*",
"mocha": "*",
"should": "*",
"jshint": "*",
"istanbul": "*",
"pre-commit": "1.1.1"
"pre-commit": "1.1.1",
"should": "*"
},

@@ -26,0 +28,0 @@ "scripts": {

@@ -22,3 +22,3 @@ java-home

```bash
```shell
$ npm i java-home --save

@@ -29,3 +29,3 @@ ```

```js
```javascript
var co = require('co');

@@ -32,0 +32,0 @@ var JAVA_HOME = require('../lib/java-home');

@@ -16,3 +16,3 @@ /* ================================================================

var javaHome = require('../');
var javaHome = require('..');

@@ -19,0 +19,0 @@ describe('test', function(){

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