Class: VMScriptObj

~vmscript~ VMScriptObj

new VMScriptObj()

VMScript Object.

Source:

Methods

parse(file_path)

Reads the file contents and runs it in this context using node.js's vm.
This is intended to be used internally. Can parse json and js files.
Runs a jshint if there is a problem loading the file.

Parameters:
Name Type Description
file_path String | Path

The file path.

Source:

vms(name, depends, callback)

Exposes function to global scope for registering dependencies.

Parameters:
Name Type Description
name String

The name of this vmscript.

depends String | Array

Dependencies.

callback function

Call Back function to execute when dependencies are met.

Source:

watch(file_path, opts)

Function used to watch the file or directory for changes.

Parameters:
Name Type Description
file_path String | Path

The file path.

opts Object

Options.

Source:
The contributors to the InfiniteSky project.
Documentation generated by JSDoc 3.4.0 on Sat Jul 16th 2016