@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'
}));

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @dylan/static

    Weekly Downloads

    45

    Version

    0.2.2

    License

    MIT

    Unpacked Size

    3.75 kB

    Total Files

    4

    Last publish

    Collaborators

    • steadymade
    • shanebo