Newer
Older
CrypticOreWallet / src / utils / setup.ts
@Drew Lemmy Drew Lemmy on 19 Feb 2021 265 bytes feat: sync balances with websocket
import { toHex } from "./";
import Debug from "debug";

// Set up custom debug formatters
// Booleans (%b)
Debug.formatters.b = (v: boolean) => v ? "true" : "false";
// Buffers as hex strings (%x)
Debug.formatters.x = (v: ArrayBufferLike | Uint8Array) => toHex(v);