Skip to main content
Module

x/aleph/server/helpers.ts

The Full-stack Framework in Deno.
Very Popular
Go to Latest
import * as aleph from "https://deno.land/x/aleph@1.0.0-beta.43/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.

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.

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@18.2.0 -> https://esm.sh/v113/react@18.2.0

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

Watch the directory and its subdirectories.