UNPKG

st

Version:

A module for serving static files. Does etags, caching, etc.

12 lines (8 loc) 254 B
import path from 'node:path' import { fileURLToPath } from 'node:url' const __filename = fileURLToPath(import.meta.url) global.options = { path: path.dirname(__filename) + '/..' } // otherwise just the same as basic. await import('./basic-test.js')