Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/endofunctor/components/encode/jsonString.mjs>default

🌍 Vixeny: A runtime-agnostic, performance-centric library championing functional purity for modern web development.
Go to Latest
variable default
import { default } from "https://deno.land/x/endofunctor@v0.0.921/components/encode/jsonString.mjs";

Stringifies a given schema based on provided options.

Examples

// Using the default safe stringify method const str_one_string = stringify()({ type: "object", properties: { hello: { type: "string" }, }, required: ["hello"], });

// Using the unsafe stringify method const ustr_one_string = stringify({type:"unsafe"})({ type: "object", properties: { hello: { type: "string" }, }, required: ["hello"], });

type

(options) => unknown