Skip to main content

Built and signed on GitHub Actions

Works with
This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score70%
License
MIT
Downloads85/wk
Published11 hours ago (0.53.2)

Static file serving and bundling for Alexi applications.

@alexi/staticfiles

Static file serving and bundling for Alexi applications.

Overview

Provides static file handling similar to Django's django.contrib.staticfiles:

  • Finders — Locate static files across apps
  • Storage — File storage backends
  • Middleware — Serve static files in development
  • Bundling — Bundle frontend apps for production

Installation

deno add jsr:@alexi/staticfiles 

Basic Usage

import { getHttpApplication } from "@alexi/core"; export default await getHttpApplication(); 

Middleware (including staticFilesMiddleware) is wired up automatically via your settings' createMiddleware function or MIDDLEWARE array.

Documentation

See the full documentation at docs/staticfiles/staticfiles.md.

License

MIT

Built and signed on
GitHub Actions

Add Package

deno add jsr:@alexi/staticfiles 

Import symbol

import * as staticfiles from "@alexi/staticfiles"; 
or

Import directly with a jsr specifier

import * as staticfiles from "jsr:@alexi/staticfiles";