Comparing version 0.0.11 to 0.0.12
11
index.js
@@ -55,2 +55,13 @@ /* | ||
exports.cpFileSync = function (src, dst) { | ||
var data = fs.readFileSync(src, 'utf8'); | ||
if(!data) { | ||
return false; | ||
} | ||
fs.writeFileSync(dst, data, 'utf8'); | ||
return data; | ||
}; | ||
/* | ||
@@ -57,0 +68,0 @@ * If no encoding read methods return buffer. |
{ | ||
"name": "helper", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "Node.js portability and api helper", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
4009
124