Socket
Book a DemoInstallSign in
Socket

cross-exec-file

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cross-exec-file

Cross platform `execFile`

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

cross-exec-file Build Status

Cross platform execFile

Install

$ npm install cross-exec-file

Usage

const crossExecFile = require('cross-exec-file');

crossExecFile('cli.js', ['unicorn']).then(res) => {
	console.log(res.stdout);
	//=> 'unicorns & rainbows'
});

API

crossExecFile(bin, [args], [options])

Returns a Promise for a result Object with stdout and stderr properties.

bin

Type: string

Path to your binary to be ran.

args

Type: Array

Arguments to run your binary with.

options

Type: Object

Provide options to be used with execFile

  • execa - A better child_process
  • cross-spawn - A cross platform solution to node's spawn and spawnSync

License

MIT © Kevin Martensson

Keywords

cross

FAQs

Package last updated on 13 Aug 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