1.1.1 • Published 10 months ago

@elysiajs/static v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@elysiajs/static

Plugin for elysia for serving static folder.

Installation

bun add @elysiajs/static

Example

import { Elysia } from 'elysia'
import { staticPlugin } from '@elysiajs/static'

const app = new Elysia()
    .use(staticPlugin())
    .listen(8080)

Config

Below is an available config for a static plugin.

assets

@default "public"

Asset path to expose as a public path

prefix

@default '/public'

Path prefix to create a virtual mount path for the static directory

staticLimit

@defualt 1024

If total files exceed this number, the file will be handled via wildcard instead of the static route to reduce memory usage

alwaysStatic

@default boolean

If set to true, the file will always use a static path instead

1.1.1

10 months ago

1.1.0

11 months ago

1.1.0-rc.0

11 months ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.0

1 year ago

1.0.0-rc.0

1 year ago

1.0.0-beta.1

1 year ago

1.0.0-beta.0

1 year ago

0.8.1

1 year ago

0.8.0

1 year ago

0.8.0-rc.0

2 years ago

0.7.0-beta.0

2 years ago

0.6.0-rc.0

2 years ago

0.7.1

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.5.0-rc.1

2 years ago

0.3.0-rc.0

2 years ago

0.5.0-rc.0

2 years ago

0.3.0

2 years ago

0.5.3

2 years ago

0.5.0

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.2.0

2 years ago

0.2.0-rc.0

2 years ago

0.2.0-beta.1

2 years ago

0.2.0-beta.0

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.1.0-rc.6

2 years ago

0.1.0-rc.5

2 years ago

0.1.0-rc.4

2 years ago

0.1.0-rc.3

3 years ago

0.1.0-rc.2

3 years ago

0.1.0-rc.1

3 years ago