CS2 检查链接序列器
CS2的轻量级序列器和解码器检查链接. 软件包叉 cs2-检查创建。 。 。 .
安装
npm i @csfloat/cs2-inspect-serializer
使用量
见 测试 用于实例.
import { decodeHex, decodeLink, generateHex, generateLink } from "@csfloat/cs2-inspect-serializer";
const props = {
defindex: 7,
paintindex: 474,
paintseed: 306,
paintwear: 0.6336590647697449,
rarity: 6,
stickers: [],
keychains: [],
variations: [],
};
const hex = generateHex(props);
const link = generateLink(props);
decodeHex(hex);
decodeLink(link);
发展
# Generate the protobuf file based on econ.proto
npm run protoc
# Build the project
npm run build
# Run the tests
npm run test