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

spawncommand

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spawncommand - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 4 April 2019
### [2.1.2](git+https://github.com/artdecocode/spawncommand/compare/v2.1.1...v2.1.2)
- [deps] Unfix dependencies, upgrade `catchment`.
## 11 March 2019

@@ -2,0 +8,0 @@

13

package.json
{
"name": "spawncommand",
"version": "2.1.1",
"version": "2.1.2",
"description": "Spawn or fork a child process with a promise property resolved on exit with stdout, stderr and code.",

@@ -21,3 +21,4 @@ "main": "build",

"example/fork.js": "node example example/fork",
"example/pipe.js": "node example example/pipe"
"example/pipe.js": "node example example/pipe",
"e": "alanode"
},

@@ -47,10 +48,10 @@ "repository": {

"devDependencies": {
"alamode": "1.8.4",
"documentary": "1.21.5",
"alamode": "^1.9.2",
"documentary": "^1.23.4",
"yarn-s": "1.1.0",
"zoroaster": "3.8.2"
"zoroaster": "^3.11.4"
},
"dependencies": {
"catchment": "3.2.2"
"catchment": "^3.2.3"
}
}

@@ -18,4 +18,4 @@ # spawnCommand

* [Types](#types)
* [`ChildProcessWithPromise`](#childprocesswithpromise)
* [`PromiseResult`](#promiseresult)
* [`ChildProcessWithPromise`](#type-childprocesswithpromise)
* [`PromiseResult`](#type-promiseresult)
* [`spawn(module: string, args: string[], options?: SpawnOptions): ChildProcessWithPromise`](#spawnmodule-stringargs-stringoptions-spawnoptions-childprocesswithpromise)

@@ -41,17 +41,17 @@ * [`fork(module: string, args: string[], options?: ForkOptions): ChildProcessWithPromise`](#forkmodule-stringargs-stringoptions-forkoptions-childprocesswithpromise)

[`import('child_process').ChildProcess`](https://nodejs.org/api/child_process.html#child_process_class_childprocess) __<a name="childprocess">`ChildProcess`</a>__
[`import('child_process').ChildProcess`](https://nodejs.org/api/child_process.html#child_process_class_childprocess) __<a name="type-childprocess">`ChildProcess`</a>__
`ChildProcess` __<a name="childprocesswithpromise">`ChildProcessWithPromise`</a>__: A child process with an extra `promise` property.
`ChildProcess` __<a name="type-childprocesswithpromise">`ChildProcessWithPromise`</a>__: A child process with an extra `promise` property.
| Name | Type | Description | Default |
| ------------ | ------------------------------------------------- | ------------------------------------------ | ------- |
| __promise*__ | _Promise.&lt;[PromiseResult](#promiseresult)&gt;_ | A promise resolved when the process exits. | - |
| Name | Type | Description |
| ------------ | ------------------------------------------------------ | ------------------------------------------ |
| __promise*__ | _Promise.&lt;[PromiseResult](#type-promiseresult)&gt;_ | A promise resolved when the process exits. |
__<a name="promiseresult">`PromiseResult`</a>__
__<a name="type-promiseresult">`PromiseResult`</a>__
| Name | Type | Description | Default |
| ----------- | -------- | ---------------------------------------------- | ------- |
| __stdout*__ | _string_ | The accumulated result of the `stdout` stream. | - |
| __stderr*__ | _string_ | The accumulated result of the `stderr` stream. | - |
| __code*__ | _number_ | The code with which the process exited. | - |
| Name | Type | Description |
| ----------- | -------- | ---------------------------------------------- |
| __stdout*__ | _string_ | The accumulated result of the `stdout` stream. |
| __stderr*__ | _string_ | The accumulated result of the `stderr` stream. |
| __code*__ | _number_ | The code with which the process exited. |

@@ -64,3 +64,3 @@ <p align="center"><a href="#table-of-contents"><img src=".documentary/section-breaks/3.svg?sanitize=true" width="15"></a></p>

`import('child_process').SpawnOptions` __<a name="spawnoptions">`SpawnOptions`</a>__
`import('child_process').SpawnOptions` __<a name="type-spawnoptions">`SpawnOptions`</a>__

@@ -108,4 +108,4 @@ ```js

`import('child_process').ForkOptions` __<a name="type-forkoptions">`ForkOptions`</a>__
```js

@@ -115,5 +115,6 @@ import { fork } from 'spawncommand'

(async () => {
const { promise } = fork('example/index.js', ['example/spawn.js'], {
stdio: 'pipe',
})
const { promise } = fork('node_modules/.bin/alanode',
['example/spawn.js'], {
stdio: 'pipe',
})
const { stdout } = await promise

@@ -120,0 +121,0 @@ console.log(stdout)

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