# outer-shelljs

> ShellJS wrapper (findByRegex, events, etc.)

Latest version **0.3.5** (published 2013-09-30) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install outer-shelljs
pnpm add outer-shelljs
yarn add outer-shelljs
bun add outer-shelljs
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.3.5 |
| Published | 2013-09-30 |
| First published | 2013-05-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Author | David Smith |
| Maintainers | codeactual |
| Keywords | shelljs, extension, helper, wrapper, events |

## Links

- npm: https://www.npmjs.com/package/outer-shelljs
- Repository: https://github.com/codeactual/outer-shelljs
- Issues: https://github.com/codeactual/outer-shelljs/issues
- npm.io page: https://npm.io/package/outer-shelljs

## Dependencies (1)

- [shelljs](https://npm.io/package/shelljs.md) ~0.2.6

## Recent versions

- 0.3.5 (latest) — 2013-09-30
- 0.4.1 (canary) — 2015-06-12
- 0.3.4 — 2013-05-23
- 0.3.3 — 2013-05-08
- 0.3.2 — 2013-05-08
- 0.3.1 — 2013-05-07
- 0.3.0 — 2013-05-07

## README

# outer-shelljs

[ShellJS](https://github.com/arturadib/shelljs) wrapper

- `findByRegex()`
- `grep()` that accepts any `grep` variant option
- `_(method, ...)` proxy that emits [events](#events) after each call

[![Build Status](https://travis-ci.org/codeactual/outer-shelljs.png)](https://travis-ci.org/codeactual/outer-shelljs)

## Example

```js
var shelljs = require('outer-shelljs').create();
var exists = shelljs._('test', '-e', '/path/to/file');
var files = shelljs.findByRegex('/path/to/dir', /\.js$/);
```

## Installation

### [NPM](https://npmjs.org/package/outer-shelljs)

    npm install outer-shelljs

## API

[Documentation](docs/OuterShelljs.md)

## Events

### `cmd`

> Fires after any [_()](docs/OuterShelljs.md) call.

```js
shelljs.on('cmd', function(method, argArray, returnVal) {
  console.log(
    'called %s with %s and returned %s',
    method, JSON.stringify(argArray), JSON.stringify(returnVal)
  );
});
```

### `cmd:<method>`

> Fires after a [_()](docs/OuterShelljs.md) call for a specific `ShellJS` method, ex. `exec`.

```js
shelljs.on('cmd:exec', function(argArray, returnVal) {
  console.log(
    '`exec` was called with %s and returned %s',
    JSON.stringify(argArray), JSON.stringify(returnVal)
  );
});
```

## License

  MIT

## Tests

    npm test

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