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

cp-remote

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cp-remote - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

5

index.js

@@ -10,2 +10,3 @@ /**

var cp_remote = require('cp-remote');
var assert = require('assert');
var remote = cp_remote.run('host', '/path/on/host/to/sub.js', 'foo', { answer: 42 });

@@ -22,7 +23,9 @@ remote.on('message', function (msg)

```javascript
var assert = require('assert');
assert.equal(process.argv[2], 'foo')
assert.equal(process.argv[3], { answer: 42 });
assert.deepEqual(process.argv[3], { answer: 42 });
process.on('message', function (msg)
{
assert.deepEqual(msg, { hello: 'world' });
process.disconnect();
});

@@ -29,0 +32,0 @@ process.send({ foo: 'bar' });

2

package.json
{
"name": "cp-remote",
"description": "Remote child_process runner with message support",
"version": "0.0.1",
"version": "0.0.2",
"homepage": "https://github.com/davedoesdev/cp-remote",

@@ -6,0 +6,0 @@ "author": {

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