mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
14 lines
289 B
JavaScript
Executable File
14 lines
289 B
JavaScript
Executable File
#! /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',
|
|
})));
|
|
|