Skip to content

Instantly share code, notes, and snippets.

View Yunus119's full-sized avatar

Yunus Yunus119

View GitHub Profile
@Yunus119
Yunus119 / decoder.js
Created September 14, 2023 08:12 — forked from magician11/decoder.js
How to edit HTML game files
/*
This will take a .save game file, decode it into its JSON form,
and then save it to game-data.json
*/
const fs = require('fs');
const LZString = require('lz-string');
if (process.argv.length === 3) {
try {
const encodedData = fs.readFileSync(process.argv[2], 'utf8');