All Projects → rwu823 → Sh Exec

rwu823 / Sh Exec

Licence: mit
💻 Use `Template literals` write shell script made happy ❤️.

Programming Languages

typescript
32286 projects
shell
77523 projects
script
160 projects

Projects that are alternatives of or similar to Sh Exec

Nsudo
Series of System Administration Tools
Stars: ✭ 945 (+894.74%)
Mutual labels:  process
Node Process List
Cross-platform native method to receive the list of the launched processes
Stars: ✭ 51 (-46.32%)
Mutual labels:  process
Processdemo
一个简单的克隆Git仓库的工程来熟悉NSOpenPanel和Process的使用
Stars: ✭ 82 (-13.68%)
Mutual labels:  process
Spm
A process manager similar to systemd and foreman with stop feature, written in Go.
Stars: ✭ 44 (-53.68%)
Mutual labels:  process
Shc
Shell script compiler
Stars: ✭ 1,050 (+1005.26%)
Mutual labels:  sh
M Cli
 Swiss Army Knife for macOS
Stars: ✭ 8,646 (+9001.05%)
Mutual labels:  sh
Processmaker
GLPI plugin that provides an interface with ProcessMaker (http://www.processmaker.com/)
Stars: ✭ 21 (-77.89%)
Mutual labels:  process
Advanced Php
最近打算写一些php一些偏微妙的教程,比如关于多进程、socket等相关,都是自己的一些感悟心得
Stars: ✭ 1,271 (+1237.89%)
Mutual labels:  process
Cliwrap
Library for running command line processes
Stars: ✭ 1,057 (+1012.63%)
Mutual labels:  process
Find Process
find process by port/pid/name etc.
Stars: ✭ 80 (-15.79%)
Mutual labels:  process
Relieve
Ease the implementation of multi processing accross your microservices
Stars: ✭ 47 (-50.53%)
Mutual labels:  process
Process Migrator
Process migrator node.js utility for VSTS inherited process
Stars: ✭ 49 (-48.42%)
Mutual labels:  process
Ps mem
A utility to accurately report the in core memory usage for a program
Stars: ✭ 1,159 (+1120%)
Mutual labels:  process
Principles.design
An open source collection of design principles and methods.
Stars: ✭ 975 (+926.32%)
Mutual labels:  process
Loading indicator view
A collection of awesome flutter loading animation
Stars: ✭ 83 (-12.63%)
Mutual labels:  process
Goat
POSIX-compliant shell movement boosting hack for real ninjas (aka `cd x` and `cd ...`)
Stars: ✭ 27 (-71.58%)
Mutual labels:  sh
Flowchart Editor
基于G6和VUE的可视化流程编辑工具
Stars: ✭ 60 (-36.84%)
Mutual labels:  process
Python Haystack
Process heap analysis framework - Windows/Linux - record type inference and forensics
Stars: ✭ 89 (-6.32%)
Mutual labels:  process
Ipc
Public domain single header inter process communication primitives
Stars: ✭ 85 (-10.53%)
Mutual labels:  process
Colorechoforshell
Make 🐚(shell) 's 💬 (`echo`) to be 🌈 easily ✨ Support ✅ sh ➕ bash ➕ zsh ➕ ksh ➕ 🐟
Stars: ✭ 75 (-21.05%)
Mutual labels:  sh

## Why sh-exec?

Use Template literals write shell script made happy ❤️.

Installation

$ yarn add sh-exec

Examples

import sh from 'sh-exec'
import { version } from '../package.json'

sh`
echo "sh-exec is awesome."
`

sh`
git init
git add .
git commit -m '${version}'
`

Quiet

If you don't like to see the command output or because some security issue.

It's helpful in CI.

import sh from 'sh-exec'

sh.quiet`echo "You can't see"`

Promise Based

sh`
  curl https://a-url.com
`
  .then(stdout => {
    console.log('done')
  })
  .catch(err => {
    console.error(err)
  })

// or
;(async () => {
  const stdout = await sh`
    curl https://a-url.com
  `
})()
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].