Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fresh/src/build/mod.ts>BuildSnapshot

The next-gen web framework.
Extremely Popular
Go to Latest
interface BuildSnapshot
import { type BuildSnapshot } from "https://deno.land/x/fresh@1.4.0/src/build/mod.ts";

Properties

readonly
paths: string[]

The list of files contained in this snapshot, not prefixed by a slash.

Methods

read(path: string): ReadableStream<Uint8Array> | Uint8Array | null

For a given file, return it's contents.

dependencies(path: string): string[]

For a given entrypoint, return it's list of dependencies.

Returns an empty array if the entrypoint does not exist.