Skip to main content
Module

x/dtils/fs.ts>writeJson

The best unofficial library of utilities for Deno applications
Go to Latest
function writeJson
import { writeJson } from "https://deno.land/x/dtils@2.3.1/fs.ts";

Write json to file. Creates the directory if it doesn't exist

Parameters

file: string
json: unknown
optional
options: WriteJsonOptions = [UNSUPPORTED]

Returns

Promise<void>