Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.5.2/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
| Promise<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.