From 9cd7864fd994dd2816ef54f3e21541c4d97323cd Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 27 Sep 2009 11:07:54 +0200 Subject: [PATCH] readFile/writeFile to read/write in file library. as suggested by Bluebie. --- lib/file.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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