@dylan/static

0.2.2 • Public • Published

Static

Middleware for Dylan which serves static assets.

Install

npm install @dylan/static

Usage

const dylan = require('dylan');
const static = require('@dylan/static');
const app = dylan();

app.use(static('path/to/assets/dir', {
  cacheControl: 'max-age=31536000, public, immutable'
}));

Readme

Keywords

Package Sidebar

Install

npm i @dylan/static

Weekly Downloads

46

Version

0.2.2

License

MIT

Unpacked Size

3.75 kB

Total Files

4

Last publish

Collaborators

  • steadymade
  • shanebo