1.0.3 • Published 14 days ago

@elysiajs/static v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
14 days 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.0.3

14 days ago

1.0.2

2 months ago

1.0.0

2 months ago

1.0.0-rc.0

2 months ago

1.0.0-beta.1

3 months ago

1.0.0-beta.0

3 months ago

0.8.1

5 months ago

0.8.0

5 months ago

0.8.0-rc.0

5 months ago

0.7.0-beta.0

8 months ago

0.6.0-rc.0

9 months ago

0.7.1

8 months ago

0.7.0

8 months ago

0.6.0

9 months ago

0.5.0-rc.1

12 months ago

0.3.0-rc.0

1 year ago

0.5.0-rc.0

12 months ago

0.3.0

1 year ago

0.5.3

11 months ago

0.5.0

12 months ago

0.3.2

1 year ago

0.3.1

1 year ago

0.5.2

11 months ago

0.5.1

12 months ago

0.2.0

1 year ago

0.2.0-rc.0

1 year ago

0.2.0-beta.1

1 year ago

0.2.0-beta.0

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.1.0-rc.6

1 year ago

0.1.0-rc.5

1 year ago

0.1.0-rc.4

1 year ago

0.1.0-rc.3

1 year ago

0.1.0-rc.2

1 year ago

0.1.0-rc.1

1 year ago