Skip to main content
Module

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

The next-gen web framework.
Extremely Popular
Latest
interface BuildSnapshot
import { type BuildSnapshot } from "https://deno.land/x/fresh@1.6.8/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.