import { configLoad } from "https://deno.land/x/simple_utility@v1.4.4/src/json.deno.ts";
Wrapper function of jsonLoad()
.
Config file path is fixed ${Deno.mainModule}/config.json
.
Examples
Example 1
Example 1
import dconfig from "./config.json" assert {type: "json"};
const config = await configLoad(dconfig);
Parameters
def: T