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
- Host: GitHub
- URL: https://github.com/predetermined/2exec
- Owner: predetermined
- License: gpl-3.0
- Created: 2020-12-20T16:50:56.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-11-30T19:55:34.000Z (over 2 years ago)
- Last Synced: 2025-12-27T06:14:59.523Z (3 months ago)
- Topics: deno, exec, execution, process, shell
- Language: TypeScript
- Homepage:
- Size: 27.3 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
}
```