Socket
Socket
Sign inDemoInstall

exec-sh

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exec-sh - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

6

package.json
{
"name": "exec-sh",
"version": "0.2.0",
"version": "0.2.1",
"description": "Execute shell command forwarding all stdio.",
"main": "lib/exec-sh.js",
"scripts": {
"test": "npm run cover-test && jshint",
"test": "npm run cover-test && npm run jshint",
"cover-test": "istanbul cover --dir artifacts/coverage _mocha -- --reporter spec",
"jshint": "jshint lib/ example/ test/",
"jshint": "jshint lib/ example/ test/ package.json",
"dev": "mocha --reporter spec --watch",

@@ -11,0 +11,0 @@ "jsdoc": "jsdoc --private --destination artifacts/jsdoc lib/"

@@ -70,3 +70,3 @@ # exec-sh

### execSh(command, [options], [callback])
### `execSh(command, [options], [callback])`

@@ -77,8 +77,8 @@ Execute shell command forwarding all stdio.

- *command* {String | Array} - The command to run, or array of commands
- *[options]* {Object | TRUE} - Options object passed directly to [`child_process.spawn`](http://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options), when `TRUE` then `{ stdio: null }` used
- *[callback]* {Function} - `callback(err, stdout, stderr)`
- *err* {Error | NULL} - Error object. Has `code` property containing last command exit code when available
- *stdout* {String | NULL} - aggregated stdout or `NULL` if not available
- *stderr* {String | NULL} - aggregated stderr or `NULL` if not available
- `command {String|Array}` - The command to run, or array of commands
- `[options] {Object|TRUE}` - Options object passed directly to [`child_process.spawn`](http://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options), when `TRUE` then `{ stdio: null }` used
- `[callback] {Function}` - `callback(err, stdout, stderr)`
- `err {Error|NULL}` - Error object. Has `code` property containing last command exit code when available
- `stdout {String|NULL}` - aggregated stdout or `NULL` if not available
- `stderr {String|NULL}` - aggregated stderr or `NULL` if not available

@@ -99,5 +99,6 @@ **Return Values:**

- `npm run jsdoc` - build jsdoc
- `npm run dev` - run tests continuously
## License
The MIT License (MIT)
The MIT License (MIT)
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