Dynamic module glob

Index

Functions

Functions

G(pattern: string, cb: (err: Error, matches: string[]) => void)

Parameters

  • pattern: string
  • cb: (err: Error, matches: string[]) => void

G(pattern: string, options: IOptions, cb: (err: Error, matches: string[]) => void)

Parameters

  • pattern: string
  • options: IOptions
  • cb: (err: Error, matches: string[]) => void

Glob: IGlobStatic

IGlob: IGlob

public EOF: any

public aborted: boolean

public cache: any

public changedCwd: boolean

public cwd: string

public error: any

public matches: Array<string>

public maxDepth: number

public maxLength: number

public minimatch: IMinimatch

public paused: boolean

public root: string

public statCache: any

public abort()

public emitMatch(m: any)

Parameters

  • m: any

public log(args?: Array<any>)

Parameters

  • args?: Array<any> optional

public pause()

public resume()

IOptions: IOptions

optional public cwd?: string

optional public debug?: boolean

optional public dot?: boolean

optional public flipNegate?: boolean

optional public globDebug?: boolean

optional public mark?: boolean

optional public matchBase?: any

optional public nobrace?: boolean

optional public nocase?: boolean

optional public nocomment?: boolean

optional public noext?: boolean

optional public noglobstar?: any

optional public nomount?: boolean

optional public nonegate?: boolean

optional public nonull?: boolean

optional public nosort?: boolean

optional public nounique?: boolean

optional public silent?: boolean

optional public stat?: boolean

optional public strict?: boolean

optional public sync?: boolean

IGlobStatic: IGlobStatic

constructor(pattern: string, cb?: (err: Error, matches: string[]) => void): IGlob

Parameters

  • pattern: string
  • cb?: (err: Error, matches: string[]) => void optional

Returns

IGlob

constructor(pattern: string, options: any, cb?: (err: Error, matches: string[]) => void): IGlob

Parameters

  • pattern: string
  • options: any
  • cb?: (err: Error, matches: string[]) => void optional

Returns

IGlob

public addListener(event: string, listener: Function): EventEmitter

Parameters

  • event: string
  • listener: Function

Returns

EventEmitter

public emit(event: string, args?: Array<any>): boolean

Parameters

  • event: string
  • args?: Array<any> optional

Returns

boolean

public listeners(event: string): Array<Function>

Parameters

  • event: string

Returns

Array<Function>

public on(event: string, listener: Function): EventEmitter

Parameters

  • event: string
  • listener: Function

Returns

EventEmitter

public once(event: string, listener: Function): EventEmitter

Parameters

  • event: string
  • listener: Function

Returns

EventEmitter

public removeAllListeners(event?: string): EventEmitter

Parameters

  • event?: string optional

Returns

EventEmitter

public removeListener(event: string, listener: Function): EventEmitter

Parameters

  • event: string
  • listener: Function

Returns

EventEmitter

public setMaxListeners(n: number)

Parameters

  • n: number

sync(pattern: string, options?: IOptions): Array<string>

Parameters

  • pattern: string
  • options?: IOptions optional

Returns

Array<string>