🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

bound-execfile

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bound-execfile

bind child_process.execFile to a file and configuration

2.0.0
latest
npm
Version published
Weekly downloads
7
250%
Maintainers
1
Weekly downloads
 
Created
Source

bound-execfile

Bind child_process.execFile to a file and configuration.

usage

const node = require(`bound-execfile`)(
  `node`,
  {
    args: {
      prefix: `-`,
      alias: {
        eval: `e`
      }
    }
  }
)

node({ eval: `console.log('hello')` }, (error, stdout, stderr) => {
  console.log(stdout.toString())
})

api

boundExecFile(file[, configuration])

  • file - <string> the name or path of the executable file to run
  • configuration - <Object>
    • args - <Object> configure options-to-args
      • prefix - <string>
      • alias - <Object>
      • behaviour - <Object>
    • options - <Object> see the documentation for child_process.execFile.

Returns a function with the following signature:

fn([options], callback)

Returns <ChildProcess>

.args

The options-to-args module

Keywords

execFile

FAQs

Package last updated on 27 Mar 2017

Did you know?

Socket

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