Class: Loader

Loader(file, flag)

class: Loader

Constructor

new Loader(file, flag)

Loads Instruction Contents from File Passed as Parameter
Parameters:
Name Type Description
file string Source File Path
flag Object Configuration Object
Properties:
Name Type Description
isSilent boolean Omit Error Message to Standard Error
showWarn boolean Display Warning instead of Error/Log
showDetail boolean Display Details of The Error Message
loader FileStream FileStream Module of Node.JS for File IO
target string Path to Source File
hasError boolean True iff Any Error has Occured
errorText string The Error Message
error string Details of The Error
content string File Contents
Source:

Methods

getContent() → {string}

Returns File Content to Caller Method
Properties:
Name Type Description
hasError boolean If Error has Occured
content string File Content
Source:
Returns:
Set of Instructions as String
Type
string

getError()

Display Error Information if any
Properties:
Name Type Description
hasError boolean True iff Any Error has Occured
isSilent boolean Omit Error Message to Standard Error
showWarn boolean Display Warning instead of Error/Log
showDetail boolean Display Details of The Error Message
errorText string The Error Message
error string Details of The Error
Source:

load()

Loads File Contents into Content Property
Properties:
Name Type Description
loader FileStream File Loader for IO
file string Target File Path
Source: