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

x/mesozoic/lib/virtualSourceFile.ts>VirtualSourceFile

A generic build system for Deno web apps
Go to Latest
class VirtualSourceFile
implements ISource
extends Source
import { VirtualSourceFile } from "https://deno.land/x/mesozoic@v1.0.0-alpha.7/lib/virtualSourceFile.ts";

Constructors

new
VirtualSourceFile(
filePath: string,
rootPath: string,
content: string | Uint8Array,
)

Properties

private
content: string | Uint8Array

Methods

copyTo(to: string): Promise<ISource>
copyToHashed(to: string): Promise<ISource>
readBytes(): Promise<Uint8Array>
remove(): Promise<boolean>