Skip to main content
Deno 2 is finally 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.922/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