Skip to content

A super simple and reliable 💪 shell execution library for Deno

License

Notifications You must be signed in to change notification settings

predetermined/2exec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2exec

A super simple and reliable shell execution library.

Features

  • &&, || and & support
  • 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

import { exec } from "https://deno.land/x/2exec/mod.ts";

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

Options

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

About

A super simple and reliable 💪 shell execution library for Deno

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published