All Projects → tiaanduplessis → shell-exec

tiaanduplessis / shell-exec

Licence: MIT license
Execute a command through the system shell

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to shell-exec

promisify-child-process
seriously like the best async child process library
Stars: ✭ 54 (+170%)
Mutual labels:  spawn, exec
Execa
Process execution for humans
Stars: ✭ 4,318 (+21490%)
Mutual labels:  spawn, exec
Sh Exec
💻 Use `Template literals` write shell script made happy ❤️.
Stars: ✭ 95 (+375%)
Mutual labels:  sh
ch.vorburger.exec
Java library to launch external processes
Stars: ✭ 26 (+30%)
Mutual labels:  exec
Fet.sh
🐢 a fetch written in posix shell without any external commands (sponsored by https://github.com/buffet/kiwmi, plz star)
Stars: ✭ 209 (+945%)
Mutual labels:  sh
Domain Check 2
Domain Expiration Check Shell Script Forked and Maintained by nixCraft
Stars: ✭ 107 (+435%)
Mutual labels:  sh
AROS
www.axrt.org
Stars: ✭ 33 (+65%)
Mutual labels:  exec
M Cli
 Swiss Army Knife for macOS
Stars: ✭ 8,646 (+43130%)
Mutual labels:  sh
sshch
Ssh connection manager
Stars: ✭ 88 (+340%)
Mutual labels:  sh
Commander
Test your command line interfaces on windows, linux and osx and nodes viá ssh and docker
Stars: ✭ 183 (+815%)
Mutual labels:  sh
ssh-autologin
一个基于 ssh 快捷登录远程服务器的脚本
Stars: ✭ 17 (-15%)
Mutual labels:  spawn
Gister
command line tool to sync github gists
Stars: ✭ 162 (+710%)
Mutual labels:  sh
Minibase
small static userspace tools for Linux
Stars: ✭ 150 (+650%)
Mutual labels:  sh
aseprite-macos-buildsh
Automated script to create latest release app (either beta, or release whichever is newer) of Aseprite for macOS
Stars: ✭ 143 (+615%)
Mutual labels:  sh
.dot Config
📚 Example dot configs for tmux, tmuxp, vim, vcspull, i3 and awesome
Stars: ✭ 102 (+410%)
Mutual labels:  sh
sh-tetris
The pure shell script (sh) that implements the Tetris game following the Tetris Guideline (2009).
Stars: ✭ 31 (+55%)
Mutual labels:  sh
Colorechoforshell
Make 🐚(shell) 's 💬 (`echo`) to be 🌈 easily ✨ Support ✅ sh ➕ bash ➕ zsh ➕ ksh ➕ 🐟
Stars: ✭ 75 (+275%)
Mutual labels:  sh
Geo
🌎 A Bash utility for easy wan, lan, router, dns, mac address, and geolocation output, with clean stdout for piping
Stars: ✭ 225 (+1025%)
Mutual labels:  sh
git-tutorial
Tutorial de Git, GitHub y GitFlow para el desarrollo de código avanzado, manejo de versiones, ramas y trabajo en equipo usando este repositorio de código, para DAM, DAW y ASIR
Stars: ✭ 48 (+140%)
Mutual labels:  sh
workbench
A hierarchical environment manager for bash, written in bash.
Stars: ✭ 17 (-15%)
Mutual labels:  sh

🐚 shell-exec

package version package downloads standard-readme compliant package license make a pull request

A tiny cross-platform promise based wrapper around child_process.spawn.

Table of Contents

⚙️ Install

Install the package locally within you project folder with your package manager:

With npm:

npm install shell-exec

With yarn:

yarn add shell-exec

With pnpm:

pnpm add shell-exec

📖 Usage

import shellExec from 'shell-exec'
shellExec('echo Hi!').then(console.log).catch(console.log)

📚 API

shellExec(command, options)

Parameters:

  • command {String | Array} - String or Array of commands to run
  • options {Object} - Options object passed to child_process.spawn

The function then returns a Promise.

See the hosted docs here.

💬 Contributing

Got an idea for a new feature? Found a bug? Contributions are welcome! Please open up an issue or make a pull request.

🪪 License

MIT © Tiaan du Plessis

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].