Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Read ¶
READ reads from a given file. @param {String} path - Path to file to read from. @return {Binary} - File content in binary format.
func RegisterLib ¶
RegisterLib register `FS` namespace functions. @namespace FS
func Write ¶
WRITE writes the given data into the file. @param {String} path - File path to write into. @param {Binary} data - Data to write. @param {Object} [params] - additional parameters: @param {String} [params.mode] - Write mode. * x - Exclusive: returns an error if the file exist. It can be combined with other modes * a - Append: will create a file if the specified file does not exist * w - Write (Default): will create a file if the specified file does not exist
Types ¶
This section is empty.