You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#! /usr/bin/env node |
|
var lzString = require('../libs/lz-string.js'); |
|
var fs = require('fs'); |
|
|
|
if (process.argv.length < 3) { |
|
console.error('Usage: lz-string <input_file>'); |
|
process.exit(1); |
|
} |
|
|
|
console.log(lzString.compress(fs.readFileSync(process.argv[2], { |
|
encoding: 'utf8', |
|
}))); |
|
|
|
|