var ZIP = require("./zip");
var FS = require("fs");
var data = FS.readFileSync("zip.zip")
var reader = ZIP.Reader(data);
console.log(reader.toObject('utf-8'));

var ZIP = require("./zip");
var FS = require("fs");

console.log("-------------------");
console.log("READ from Buffer");

var data = FS.readFileSync("zip.zip")
var reader = ZIP.Reader(data);
console.log(reader.toObject('utf-8'));

console.log("-------------------");
console.log("READ from file descriptor");

FS.open("zip.zip", "r", "0666", function(err, fd) {
  var reader = ZIP.Reader(fd);
	console.log(reader.toObject('utf-8'));
});


Test two ways of reading: buffer and FD
Test two ways of reading: buffer and FD