Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

111 lines (62 sloc) 2.932 kB

ShellJS extensions

Source: lib/outer-shelljs/index.js

exports.OuterShelljs()

Reference to OuterShelljs.

Go: TOC | exports

exports.create()

Create a new OuterShelljs.

Return:

{object}

Go: TOC | exports

exports.extend(ext)

Extend OuterShelljs.prototype.

Parameters:

  • {object} ext

Return:

{object} Merge result.

Go: TOC | exports

OuterShelljs()

OuterShelljs constructor.

Properties:

  • {object} shelljs Native ShellJS module

Inherits:

  • events.EventEmitter

Go: TOC

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 | OuterShelljs.prototype

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 | OuterShelljs.prototype

OuterShelljs.prototype._(method, arg*)

Invoke a native ShellJS method.

Parameters:

  • {string} method
  • {mixed} arg* All other arguments are passed to method

Go: TOC | OuterShelljs.prototype

—generated by apidox

Jump to Line
Something went wrong with that request. Please try again.