Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

filetest was renamed "test"

  • Loading branch information...
commit 4bc52f92c1d01065c7684170030236598f65b3c3 1 parent 5fd7038
@Woodya authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 test.js
View
4 test.js
@@ -3,7 +3,7 @@ var sys = require("sys");
var fs = require("fs");
// Read in our test file
-var testfile = process.argv[2] || "filetest.js";
+var testfile = process.argv[2] || "test.js";
var enc = process.argv[3];
var data = fs.readFileSync(testfile, enc);
sys.puts("Got : " + data.length);
@@ -14,7 +14,7 @@ sys.puts("File opened");
// Create gzip stream
var gzip = new gzbz2.Gzip;
-gzip.init();
+gzip.init({level:3});
// Pump data to be gzbz2
var gzdata = gzip.deflate(data, enc); // Do this as many times as required
Please sign in to comment.
Something went wrong with that request. Please try again.