0.1.24 • Published 2 months ago
@written/static v0.1.24
@written/static
Static file serving middleware for Written.
Installation
In your function, run:
pnpm i @written/static
Usage
import App from '@written/app';
import static from '@written/static';
const app = new App();
app.use(
static({
directory: `${__dirname}/../`, // Additional optional options can be found in the type declaration
}),
);
export default app.server();
0.1.23
2 months ago
0.1.24
2 months ago
0.1.22
2 months ago
0.1.21
2 months ago
0.1.20
2 months ago
0.1.19
2 months ago
0.1.18
3 months ago
0.1.17
3 months ago
0.1.16
3 months ago
0.1.15
4 months ago
0.1.10
4 months ago
0.1.11
4 months ago
0.1.12
4 months ago
0.1.13
4 months ago
0.1.14
4 months ago
0.1.9
4 months ago
0.1.8
4 months ago
0.1.7
5 months ago
0.1.6
5 months ago
0.1.4
5 months ago
0.1.5
5 months ago
0.1.3
6 months ago
0.1.2
6 months ago