import { numberToHex } from "https://deno.land/x/polkadot@0.2.27/util/number/toHex.ts";
Examples
import { numberToHex } from 'https://deno.land/x/polkadot@0.2.27/util/mod.ts';
numberToHex(0x1234); // => '0x1234'
numberToHex(0x1234, 32); // => 0x00001234