Skip to content

create3000/shell-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shell-tools

NPM Version NPM Downloads DeepScan grade

Functions for easy shell handling

Installation

npm i -D shell-tools

Usage

It can be used both as ES module (import) or CommonJS (require).

import { sh, system, systemSync } from "shell-tools";

// You can use only one argument.
const output   = sh ("ls -la");
const exitCode = await system ("ls -la");
const exitCode = systemSync ("ls -la");

// Or you can use multiple arguments, which is safer.
const output   = sh ("ls", "-la");
const exitCode = await system ("ls", "-la");
const exitCode = systemSync ("ls", "-la");

About

Functions for easy shell handling

Resources

License

Stars

Watchers

Forks

Packages

No packages published