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

x/mesozoic/lib/source.ts>Source

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

Constructors

new
Source(filePath: string, rootPath: string)

Properties

private
optional
aliasPath: string
private
locked: boolean

Methods

contentHash(length?)
copyTo(_to: string, _filePath?: string | undefined): Promise<ISource>
copyToHashed(to: string): Promise<ISource>
readAsJson<T = unknown>(reviver?: (key: string, value: any) => any): Promise<T>
remove(): Promise<boolean>
setAlias(alias: string): void
url()
write(content: string | Uint8Array)
writeJson(value: any, pretty?)