ShellJS extensions
_Source: [lib/outer-shelljs/index.js](../lib/outer-shelljs/index.js)_
- [exports.OuterShelljs](#exportsoutershelljs)
- [exports.create](#exportscreate)
- [exports.extend](#exportsextendext)
- [OuterShelljs](#outershelljs)
- [OuterShelljs.prototype.findByRegex](#outershelljsprototypefindbyregexparent-regex)
- [OuterShelljs.prototype.grep](#outershelljsprototypegrepflags-l-textpat-filepat-variantgrep)
- [OuterShelljs.prototype._](#outershelljsprototype_method-arg)
# exports.OuterShelljs()
> Reference to [OuterShelljs](#outershelljs).
Go: [TOC](#tableofcontents) | [exports](#toc_exports)
# exports.create()
> Create a new [OuterShelljs](#outershelljs).
**Return:**
`{object}`
Go: [TOC](#tableofcontents) | [exports](#toc_exports)
# exports.extend(ext)
> Extend [OuterShelljs](#outershelljs).prototype.
**Parameters:**
- `{object} ext`
**Return:**
`{object}` Merge result.
Go: [TOC](#tableofcontents) | [exports](#toc_exports)
# OuterShelljs()
> OuterShelljs constructor.
**Properties:**
- `{object} shelljs` Native ShellJS module
**Inherits:**
- `events.EventEmitter`
Go: [TOC](#tableofcontents)
# OuterShelljs.prototype.findByRegex(parent, regex)
> `find()` wrapper that filters results by `RegExp`.
**Parameters:**
- `{string} parent` Root dir of search scope
- `{regexp} regex`
**Return:**
`{array}` Matching `shelljs.find()` results
Go: [TOC](#tableofcontents) | [OuterShelljs.prototype](#toc_outershelljsprototype)
# OuterShelljs.prototype.grep([flags=['-l']], textPat, filePat, [variant='grep'])
> `grep()` alternative that allows any wildcards/flags supported by the
selected `grep` variant.
**Parameters:**
- `{string} [flags=['-l']]`
- `{string} textPat`
- `{string} filePat`
- `{string} [variant='grep']`
**Return:**
`{array | object}`
- `{array}` Matching files, if variant exited cleanly
- `{object}` with properties `output` and `code`, if variant exited with code > 2
Go: [TOC](#tableofcontents) | [OuterShelljs.prototype](#toc_outershelljsprototype)
# OuterShelljs.prototype._(method, arg*)
> Invoke a native ShellJS method.
**Parameters:**
- `{string} method`
- `{mixed} arg*` All other arguments are passed to `method`
Go: [TOC](#tableofcontents) | [OuterShelljs.prototype](#toc_outershelljsprototype)
_—generated by [apidox](https://github.com/codeactual/apidox)—_