An open API service indexing awesome lists of open source software.

https://github.com/predetermined/2exec

A super simple and reliable 💪 shell execution library for Deno
https://github.com/predetermined/2exec

deno exec execution process shell

Last synced: about 1 month ago
JSON representation

A super simple and reliable 💪 shell execution library for Deno

Awesome Lists containing this project

README

          

# 2exec
A super simple and reliable shell execution library.
* [Documentation](https://doc.deno.land/https/deno.land/x/2exec/mod.ts)

## Features
- [x] `&&`, `||` and `&` support
- [x] Built-in stream management
- [ ] `|` support
- [ ] `>` support
- [ ] Execution groups (e.g. `(rm file.txt && echo deleted) || echo failed`)
- [ ] Directory changes (e.g. `cd /tmp/ && ls`)

## Example usage
```typescript
import { exec } from "https://deno.land/x/2exec/mod.ts";

const processes = await exec("ps -aux");
```

## Options
```typescript
// exec(command, options);
// ^
const options = {
// Default
ignoreErrors: false,
log: false
}
```