mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
readFile/writeFile to read/write in file library.
as suggested by Bluebie.
This commit is contained in:
@@ -12,9 +12,9 @@ function debugObject (obj) {
|
||||
}
|
||||
}
|
||||
|
||||
exports.readFile = node.fs.cat;
|
||||
exports.read = node.fs.cat;
|
||||
|
||||
exports.writeFile = function (filename, data, encoding) {
|
||||
exports.write = function (filename, data, encoding) {
|
||||
var promise = new node.Promise();
|
||||
|
||||
encoding = encoding || "utf8"; // default to utf8
|
||||
|
||||
Reference in New Issue
Block a user