Comparing version 0.0.2 to 0.0.3
10
main.js
@@ -154,2 +154,12 @@ var fs = require('fs') | ||
} | ||
if (!self.src && !self.dest) { | ||
if (self.buffers.length > 0) { | ||
stream.Stream.prototype.pipe.call(self, fs.createWriteStream(self.path)) | ||
} else if (self.listeners('data').length > 0) { | ||
fs.createReadStream(self.path).pipe(self.dest) | ||
} else { | ||
throw new Error('Not Implemented, lazy (future) dynamic read/write discovery,') | ||
} | ||
} | ||
@@ -156,0 +166,0 @@ }) |
{ | ||
"name": "filed", | ||
"description": "Simplified file library.", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
38499
552