Socket
Socket
Sign inDemoInstall

faithful-exec

Package Overview
Dependencies
2
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    faithful-exec

Wraps child_process.exec, returning a promise.


Version published
Maintainers
1
Install size
55.4 kB
Created

Readme

Source

faithful-exec Build Status Dependency Status

Wraps child_process.exec, returning a promise.

faithful-exec exports a single function that lets you execute system commands via child_process.exec. It adapts the interface of exec as follows:

  • When the command succeeds, the promise gets fulfilled with a result object that has two properties, stderr and stdout.
  • When the command fails, the error object returned by child_process.exec gets extended with two properties: stderr and stdout.

This way, you always have access to a command's full output, regardless of what happens.

Like child_process.exec, faithful-exec also lets you set options through a optional second argument.

Credits

The initial structure of this module was generated by Jumpstart, using the Jumpstart Black Coffee template.

License

faithful-exec is released under the MIT License.
Copyright (c) 2013 Meryn Stol

Keywords

FAQs

Last updated on 09 May 2013

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc