execa-extra
v0.1.0
Published
Execa wrapper exposing tagged templates APIs
Downloads
19
Readme
execa-extra
Execa wrapper exposing tagged templates APIs
Installation
npm install execa-extra
Usage
$
API
import { $ } from 'execa-extra'
const { stdout } = await $`echo 'Hello world'`
console.log(stdout)
$.sync
API
import { $ } from 'execa-extra'
const { stdout } = $.sync`echo 'Hello world'`
console.log(stdout)
With options
import { $ } from 'execa-extra'
await $({ stdio: 'inherit' })`echo 'Hello world'`
See the execa documentation for details on the available options
With shell syntax
import { $ } from 'execa-extra'
await $({ stdio: 'inherit', shell: true })`echo 'Hello world' | wc -w`
See the execa documentation for details on the available options
With pre-configured options
import { $ } from 'execa-extra'
const my$ = $({ stdio: 'inherit', shell: true })
await my$`echo 'Hello world' | wc -w`
See the execa documentation for details on the available options