Fork of pako for Roblox-TS.
Supported as a pesde (Luau) package and npm (roblox-ts) package:
# pesde
pesde add 0x5eal/pako
# roblox-ts
npm add @rbxts/pako
local serde = require("@lune/serde")
local pako = require("./luau_packages/pako")
local test = { my = "super", puper = { 456, 567 }, awesome = "pako" }
local compressed = pako.deflate(serde.encode("json", test))
local restored = serde.decode(pako.inflate(compressed, { to = "string" }))
import pako from "@rbxts/pako";
const test = { my: "super", puper: [456, 567], awesome: "pako" };
const compressed = pako.deflate(JSON.stringify(test));
const restored = JSON.parse(pako.inflate(compressed, { to: "string" }));