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

exec-it

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exec-it - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

7

index.js

@@ -25,3 +25,4 @@ #!/usr/bin/env node

'-l username on remote machine, default is ec2-user\n' +
'-i private key, default is /a_home_dir/.ssh/id_rsa)\n')
'-i private key, default is /a_home_dir/.ssh/id_rsa)\n' +
'-h private key passphrase, default is none)\n')
return process.exit(0)

@@ -34,3 +35,5 @@ }

var multiExecutor = new MultiExecutor(command, conf.p, conf.l, privateKey);
var passphrase = conf.h;
var multiExecutor = new MultiExecutor(command, conf.p, conf.l, privateKey, passphrase);
multiExecutor.start();

@@ -1,2 +0,1 @@

var _ = require('lodash');

@@ -7,3 +6,3 @@ var debug = require('debug');

function Executor(host, port, user, privateKey, command) {
function Executor(host, port, user, privateKey, passphrase, command) {
this._debug = debug('B');

@@ -15,3 +14,4 @@ this._host = host;

username: user,
privateKey: privateKey
privateKey: privateKey,
passphrase: passphrase
}

@@ -18,0 +18,0 @@ this._command = command;

@@ -8,3 +8,3 @@

function MultiExecutor(command, port, user, privateKey) {
function MultiExecutor(command, port, user, privateKey, passphrase) {
this._debug = debug('A');

@@ -15,2 +15,3 @@ this._command = command;

this._privateKey = privateKey;
this._passphrase = passphrase;
var splitter = split();

@@ -48,3 +49,3 @@ splitter.on('data', _.bind(this._readHost, this));

var host = hosts[i];
var remoteExecutor = new Executor(host, this._port, this._user, this._privateKey, this._command);
var remoteExecutor = new Executor(host, this._port, this._user, this._privateKey, this._passphrase, this._command);
remoteExecutor.start();

@@ -51,0 +52,0 @@ }

{
"name": "exec-it",
"version": "0.0.4",
"version": "0.0.5",
"description": "Executes a command on a remote machine using ssh connection",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -16,3 +16,3 @@ # exec-it

```
this module plays very well with [ec2-instance-lister](https://github.com/aviramst/ec2-instance-lister)
## Options

@@ -19,0 +19,0 @@

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