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

x/clone/deps.ts>fs.readJson

A simple utility for the convenient clone
Go to Latest
function fs.readJson
import { fs } from "https://deno.land/x/clone@v1.0.4/deps.ts";
const { readJson } = fs;

Reads a JSON file and then parses it into an object

Parameters

filePath: string

Returns

Promise<unknown>