Class JSLINT-NodeJSRuntime
Defined in: runtime.js.
Constructor Attributes | Constructor Name and Description |
---|---|
<inner> |
Field Attributes | Field Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<inner> |
bufferToUint8Array(buffer)
|
byteArrayFromString(string, encoding)
|
|
cancelAnimationFrame(requestId)
|
|
clearTimeout(timeoutID)
|
|
deleteFile(path, callback)
|
|
<inner> |
loadXML(path, callback)
|
<inner> |
log(msgOrCategory, msg)
|
parseXML(xml)
|
|
read(path, offset, length, callback)
|
|
<inner> |
readFile(path, encoding, callback)
Read the contents of a file.
|
readFileSync(path, encoding)
|
|
requestAnimationFrame(callback)
|
|
setCurrentDirectory(dir)
|
|
setTimeout(f, msec)
|
|
writeFile(path, data, callback)
|
Field Detail
{*}
fromJson
{*}
getVariable
{!string}
toJson
Method Detail
<inner>
{!Uint8Array}
bufferToUint8Array(buffer)
- Parameters:
- {!Buffer} buffer
- Returns:
- {!Uint8Array}
{!Uint8Array}
byteArrayFromString(string, encoding)
- Parameters:
- {!string} string
- {!string} encoding
- Returns:
- {!Uint8Array}
{undefined}
cancelAnimationFrame(requestId)
- Parameters:
- {!number} requestId
- Returns:
- {undefined}
{undefined}
clearTimeout(timeoutID)
- Parameters:
- {!number} timeoutID
- Returns:
- {undefined}
{undefined}
deleteFile(path, callback)
- Parameters:
- {!string} path
- {!function(?string):undefined} callback
- Returns:
- {undefined}
{!Array.}
libraryPaths()
- Returns:
- {!Array.}
<inner>
{undefined}
loadXML(path, callback)
- Parameters:
- {!string} path
- {!function(?string|?Document):undefined} callback
- Returns:
- {undefined}
<inner>
{undefined}
log(msgOrCategory, msg)
- Parameters:
- {!string} msgOrCategory
- {string=} msg
- Returns:
- {undefined}
{?Document}
parseXML(xml)
- Parameters:
- {!string} xml
- Returns:
- {?Document}
{undefined}
read(path, offset, length, callback)
- Parameters:
- {!string} path
- {!number} offset
- {!number} length
- {!function(?string|?Uint8Array):undefined} callback
- Returns:
- {undefined}
<inner>
{undefined}
readFile(path, encoding, callback)
Read the contents of a file. Returns the result via a callback. If the
encoding is 'binary', the result is returned as a Uint8Array,
otherwise, it is returned as a string.
- Parameters:
- {!string} path
- {!string} encoding
- text encoding or 'binary'
- {!function(?string|?(string|Uint8Array)):undefined} callback
- Returns:
- {undefined}
{!string|!Uint8Array}
readFileSync(path, encoding)
- Parameters:
- {!string} path
- {!string} encoding
- text encoding or 'binary'
- Returns:
- {!string|!Uint8Array}
{!number}
requestAnimationFrame(callback)
- Parameters:
- {!function():undefined} callback
- Returns:
- {!number}
{undefined}
setCurrentDirectory(dir)
- Parameters:
- {!string} dir
- Returns:
- {undefined}
{!number}
setTimeout(f, msec)
- Parameters:
- {!function():undefined} f
- {!number} msec
- Returns:
- {!number}
{undefined}
writeFile(path, data, callback)
- Parameters:
- {!string} path
- {!Uint8Array} data
- {!function(?string):undefined} callback
- Returns:
- {undefined}