Interface BrowserifyObject

Hierarchy

Index

Methods

Methods

public add(file: string): BrowserifyObject

Parameters

  • file: string

Returns

BrowserifyObject

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

Parameters

  • event: string
  • listener: Function

Returns

EventEmitter

public bundle(opts?: { insertGlobals?: boolean; detectGlobals?: boolean; debug?: boolean; standalone?: string; insertGlobalVars?: any; }, cb?: (err: any, src: any) => void): ReadableStream

Parameters

  • opts?: { insertGlobals?: boolean; detectGlobals?: boolean; debug?: boolean; standalone?: string; insertGlobalVars?: any; } optional
  • cb?: (err: any, src: any) => void optional

Returns

ReadableStream

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

Parameters

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

Returns

boolean

public external(file: string): BrowserifyObject

Parameters

  • file: string

Returns

BrowserifyObject

public ignore(file: string): BrowserifyObject

Parameters

  • file: string

Returns

BrowserifyObject

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 require(file: string, opts?: { expose: string; }): BrowserifyObject

Parameters

  • file: string
  • opts?: { expose: string; } optional

Returns

BrowserifyObject

public setMaxListeners(n: number)

Parameters

  • n: number

public transform(tr: string): BrowserifyObject

Parameters

  • tr: string

Returns

BrowserifyObject

public transform(tr: Function): BrowserifyObject

Parameters

  • tr: Function

Returns

BrowserifyObject