🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

kattu

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kattu

Run commands quietly unless the command fails

0.1.2
latest
Source
npm
Version published
Maintainers
1
Created
Source

kattu Build Status

Run commands quietly unless the command fails

Usage

I often wish to run commands but hide the output unless the command fails. In such cases, I would love to see both stdout and stderr so that I can analyze the issues. Mostly I use this while doing sysadmin stuffs.

Install

$ npm install --save kattu

Usage

const kattu = require('kattu');

kattu('ls /tmp');
//=>

kattu('ls /tmp/does/not/exist');
//prints => ls: cannot access /tmp/does/not/exist: No such file or directory

API

kattu(cmd)

cmd

Type: string

Pass the command you wish to run.

CLI

$ npm install --global kattu
$ kattu --help

  Usage
    kattu [cmd]

  Examples
    $ kattu ls /tmp
    $ kattu ls /tmp/does/not/exist
    ls: cannot access /tmp/abc: No such file or directory

License

MIT © techgaun

Keywords

cli-app

FAQs

Package last updated on 07 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts