# syscmd

> A small package that allows for shell commands to be executed right from Node

Latest version **0.1.1** (published 2019-05-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install syscmd
pnpm add syscmd
yarn add syscmd
bun add syscmd
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2019-05-19 |
| First published | 2019-05-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Tyler Holewinski |
| Maintainers | erwijet |
| Keywords | Command, Shell, Nodejs |

## Links

- npm: https://www.npmjs.com/package/syscmd
- Repository: http://www.github.com/erwijet/syscmd
- npm.io page: https://npm.io/package/syscmd

## Dependencies (1)

- [child_process](https://npm.io/package/child_process.md) ^1.0.2

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2019-05-19
- 0.1.0 — 2019-05-19

## README

# Syscmd
A small package that allows for shell commands to be executed right from Node 👩‍💻

[![npm version](http://img.shields.io/npm/v/syscmd.svg?style=flat)](https://npmjs.org/package/syscmd "View this project on npm")
[![NPM Downloads](https://img.shields.io/npm/dt/syscmd.svg)](http://npmjs.com/syscmd)<br>
[![GitHub version](https://badge.fury.io/gh/erwijet%2Fsyscmd.svg)](https://github.com/erwijet/syscmd.js)
[![GitHub issues](https://img.shields.io/github/issues/erwijet/syscmd.svg)](https://GitHub.com/erwijet/syscmd/issues/)
[![GitHub pull-requests](https://img.shields.io/github/issues-pr/erwijet/syscmd.svg)](https://GitHub.com/erwijet/syscmd/pull/)
[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)<br>
[![RunKit state](https://img.shields.io/badge/RunKit-Passing-green.svg)]()
[![Gitter](https://badges.gitter.im/syscmd/community.svg)](https://gitter.im/syscmd/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[![GitHub watchers](https://img.shields.io/github/watchers/erwijet/syscmd.svg?style=social&label=Watch&maxAge=2592000)](https://GitHub.com/erwijet/syscmd/watchers/)
[![GitHub stars](https://img.shields.io/github/stars/erwijet/syscmd.svg?style=social&label=Star&maxAge=2592000)](https://GitHub.com/erwijet/syscmd/stargazers/)


## Installation
```$ npm i --save syscmd```<br>
```javascript
const syscmd = require('syscmd');
```

## Usage

### ⭐ Standard Usage
```javascript
const syscmd = require('syscmd');
syscmd('echo Hello!');

// Output: 
// HellO!
```

### ⭐ Redirect Output
```javascript
const syscmd = require('syscmd');
syscmd('ls -la', (err, stdout, stderr) => {
  if (err)
    throw err;
  // Work with stdout here as output
});
```

### ⭐ No Output

```javascript
const syscmd = require('syscmd');
syscmd('unzip archive.zip -d archive/', () => null);
```

------

**syscmd** © 2019, Tyler Holewinski. Released under the [MIT] License.<br>
Authored and maintained by Tyler Holewinski with help from contributors.

> GitHub [@erwijet](https://github.com/erwijet) &nbsp;&middot;&nbsp;
> Instagram [@erwijet](https://instagram.com/erwijet)

[MIT]: http://mit-license.org/

---
_Source: https://npm.io/package/syscmd · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
