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

Require

A function to read JSON just like CommonJS.

import { require } from "https://deno.land/x/require/mod.ts"
const obj = await require("./test.json")