snowflake-encoder
v1.0.1
Published
Ecnodes and decodes number strings to Base36 (Usually snowflakes) Powered by BigInt (real)
Downloads
2
Readme
Ecnodes and decodes number strings to Base36 (Usually snowflakes) Powered by BigInt (real)
// CommonJS
const { encode, decode } = require("snowflake-encoder");
// ES6
import { encode, decode } from "snowflake-encoder";
encode("296776625432035328"); // 2966j7kcu4u8
decode("2966j7kcu4u8"); // 296776625432035328
idk i just made this for my discord attachment mapping so use it if you want ig might be useful pogpogpogpogpogpogpogpogpogpogpogpogpogpogpogpogpogpogpopog!