Skip to main content
Module

x/canonify/mod.ts>canonify

A tiny JSON canonicalize function written in Typescript. Creates crypto safe predictable canonicalization of JSON as defined by RFC8785 and is usable in Deno, Node.js, and browsers.
Latest
function canonify
import { canonify } from "https://deno.land/x/canonify@v1.1.1/mod.ts";

Convert a JSON serializable object to a canonicalized string.

Parameters

object: any

The object to convert.

Returns

string | undefined

The canonicalized string or undefined.