Comparing version 0.0.1 to 0.0.2
@@ -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' }); |
{ | ||
"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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
127995
317