Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/simple_utility/src/deno/json.ts>jsonWrite

Simplify processing for Deno.
Go to Latest
function jsonWrite
import { jsonWrite } from "https://deno.land/x/simple_utility@v2.0.9/src/deno/json.ts";

Convert from object to JSON and write to file.

Examples

Example 1

await jsonWrite("./data.json", {
    foo: "bar"
});

Parameters

path: string
data: T

Returns

Promise<void>