Module

x/aleph/server/helpers.ts

The Full-stack Framework in Deno.
Go to Latest
import * as mod from "https://dotland.deno.dev/x/aleph@1.0.0-beta.15/server/helpers.ts";

Classes

A MagicString alternative using byte offsets

Functions

Check whether or not the given path exists as a directory.

Check whether or not the given path exists as regular file.

Fetch source code from fs/cdn/cache.

Find file in the cwd directory.

Get Aleph.js package URI.

Get the module URI of Aleph.js

Get the deployment ID.

Get files in the directory.

Get the import maps.

Get the jsx config.

Get the UnoCSS generator, return null if the presets are empty.

Stores and returns the fn output in the globalThis object.

Stores and returns the fn output in the globalThis object synchronously.

Check if the url is a npm package from esm.sh

Load the import maps from the json file.

Load the JSX config base the given import maps and the existing deno config.

Restore the remote url from local path. e.g. /-/esm.sh/react@17.0.2 -> https://esm.sh/react@17.0.2

Fix remote url to local path. e.g. https://esm.sh/react@17.0.2?dev -> /-/esm.sh/react@17.0.2?dev

Watch the directory and its subdirectories.