import { compactToU8a } from "https://deno.land/x/polkadot@0.2.37/util/compact/index.ts";
Examples
import { compactToU8a } from 'https://deno.land/x/polkadot@0.2.37/util/mod.ts';
console.log(compactToU8a(511, 32)); // Uint8Array([0b11111101, 0b00000111])