A static file server for Rill. Internally node-static is used and all options are valid.
npm install @rill/static
const app =const static =// Directory can be relative to where node_modules are installed or an absolute path.// Cache time will use the `ms` module to parse time strings, otherwise use milliseconds.app// You can also serve a directory at a specific path.app // -> /assets/test.txt will look in project/assets_foler/test.txt
static(directory, options) - All files in the provided directory will automatically be served.
npm testto run tests.
Please feel free to create a PR!