diff --git a/lib/file.js b/lib/file.js index 6cab0fafe7..9844f97b53 100644 --- a/lib/file.js +++ b/lib/file.js @@ -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