Function prettyPrintSNBT

  • Pretty-prints SNBT.

    Parameters

    • obj: any

      The SNBT-like JSON to pretty-print.

    • options: PrettyPrintOptions = {}

      The options to use.

    Returns string

    The pretty-printed SNBT.

    prettyPrintSNBT(prismarineToSNBT({
    type: "compound",
    value: {
    enabled: {
    type: "byte",
    value: 1
    }
    }
    }))