node-filerw
A node-task compliant read-write interface for local filesystems.
API
read(path, options)
Read a file from the local disk and return a promise which resolves to a node-task compliant record.
The options
object supports these keys:
encoding
The encoding of the file to be read.
var filerw = ;filerw;
write(buffer, options)
Save a node-task compliant buffer to the local disk.
The options
object supports these keys:
n/a
var filerw = ;var file = 'tmp/test.txt' 'utf8' 'test file';filerw;