Skip to content

csfloat/cs-inspect-serializer

Repository files navigation

CS2 Inspect Link Serializer

Lightweight serializer and decoder for CS2 inspect links. Fork of the package cs2-inspect-create.

Installation

npm i @csfloat/cs2-inspect-serializer

Usage

See the tests for examples.

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: [],
};

const hex = generateHex(props);
const link = generateLink(props);

decodeHex(hex);
decodeLink(link);

Development

# Generate the protobuf file based on econ.proto
npm run protoc
# Build the project
npm run build
# Run the tests
npm run test

About

Lightweight serializer and decoder for CS inspect links

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors