terminal-exec
v0.0.8
Published
Open terminal and execute command
Downloads
9
Readme
terminal-exec
"terminal-exec" is a Node.js module used to execute command in terminal. It is very useful when your command need interactive. For example, "sudo" need user enter password.
Requirement
"terminal-exec" had been tested in Windows 7 (64bit) and Ubuntu 16.04 LTS (64bit) with Node.js v10.15.0.
Install
npm i terminal-execUsage
Windows
const terminalExec = require('./index.js')
terminalExec('echo "Hello world" && pause')Result:

Linux
const terminalExec = require('./index.js')
terminalExec('sudo echo "Hello world" & pause')Result:

Websites
- Project: https://github.com/pulipulichen/terminal-exec
- Issues: https://github.com/pulipulichen/terminal-exec/issues
- npm: https://www.npmjs.com/package/terminal-exec
- RunKit (test): https://npm.runkit.com/terminal-exec
