Socket
Socket
Sign inDemoInstall

exe

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    exe

execute shell commands from node.js, synchronous, with stdin, stdout, stderr.


Version published
Weekly downloads
169
decreased by-35.25%
Maintainers
1
Install size
3.72 kB
Created
Weekly downloads
 

Readme

Source

exe

execute shell commands from node.js

. synchronous

.. with stdin, stdout, stderr and with environment variables

... as you would expect when executing commands in the shell itself

install

npm i -S exe

use

var exeCute = require('exe');

exeCute('echo "hello world"');
//> hello world

exeCute('echo "$PATH"');
// prints PATH environment variable

API

exeCute(command[, options])

  • same arguments as execSync

  • with the following default options:

 {
   stdio :[0,1,2],
   env: process.env
 }

test

npm test

note

requires node version >= 0.12.x since it uses child_process.execSync(command[, options]) introduced in 0.12.

license

MIT

author

Andi Neck @andineck

Keywords

FAQs

Last updated on 21 Oct 2015

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