# functional-shell

> The functional shell-script exec module

Latest version **0.1.1** (published 2014-04-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install functional-shell
pnpm add functional-shell
yarn add functional-shell
bun add functional-shell
```

## 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 | 2014-04-21 |
| First published | 2014-04-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | sxend |
| Maintainers | sxend |
| Keywords | shell, execute, function |

## Links

- npm: https://www.npmjs.com/package/functional-shell
- npm.io page: https://npm.io/package/functional-shell

## Recent versions

- 0.1.1 (latest) — 2014-04-21
- 0.1.0 — 2014-04-17

## README

functional-shell
================

```javascript:sample.js
var echo = function() {
    /*
    #!/bin/sh
    echo $1
    */
};

var process = sh(echo, ["hello"]);
process.on('stdout', function(data) {
    console.log(data.toString()); // hello\n
});
process.on('stderr', function(data) {
    console.error(data);
});
process.on('error', function(err) {
    throw err;
});
process.on('close', function(data) {
    console.log(data); // 0 finish status code
});
```

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