0.1.0 • Published 1 year ago

execa-extra v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

0.1.0

1 year ago

0.0.1

2 years ago