shell-tools

1.1.9 • Public • Published

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");

Package Sidebar

Install

npm i shell-tools

Weekly Downloads

5

Version

1.1.9

License

GPL-3.0

Unpacked Size

41.4 kB

Total Files

5

Last publish

Collaborators

  • create3000