the-forest/client/node_modules/lz-string/bin/bin.js

14 lines
289 B
JavaScript
Raw Normal View History

2024-09-17 20:35:18 -04:00
#! /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',
})));