Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Improved simple node demo.

  • Loading branch information...
commit 61b611d4fcf9f33c0c8b8a6bac9e7a2933d58e9e 1 parent 93ae581
@nmrugg authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 demos/simple_node_demo.js
View
6 demos/simple_node_demo.js
@@ -1,10 +1,10 @@
-/// Usage: $ node simple_node_demo.js [text]
+/// Usage: $ node simple_node_demo.js [text [mode]]
///NOTE: You can install LZMA-JS via npm with this command: $ npm install lzma
/// Then you can load the code with the following code: var my_lzma = require("lzma").LZMA();
var my_lzma = require("../src/lzma.js").LZMA(),
- compress_me = (process.argv[2] || "Hello, world."),
- compression_mode = 1;
+ compress_me = process.argv[2] || "Hello, world.",
+ compression_mode = process.argv[3] || 1;
/// First, let's compress it.
my_lzma.compress(compress_me, compression_mode, function (result) {
Please sign in to comment.
Something went wrong with that request. Please try again.