A collection of string utility functions for VRChat development, including compression and encoding methods.
This library provides methods for compressing and decompressing strings using the LZ-based compression algorithm. It supports various encoding formats such as Base64 and URI-safe encoding.
var lz = new LzString();
var str = "Your string to compress here";
// === UTF-16 ===
var a = lz.CompressToUTF16(str);
var b = lz.DecompressFromUTF16(a);
// === Uint8Array ===
var a = lz.CompressToUint8Array(str);
var b = lz.DecompressFromUint8Array(a);
// === Base64 ===
var a = lz.CompressToBase64(str);
var b = lz.DecompressFromBase64(a);
// === URI Component ===
var a = lz.CompressToEncodedURIComponent(str);
var b = lz.DecompressFromEncodedURIComponent(a);
cat.natsuneko.string-utils
未設定
0.1.0
2022.2 以降
なし
なし