@celeri/static

A static file server for celeri

Usage no npm install needed!

<script type="module">
  import celeriStatic from 'https://cdn.skypack.dev/@celeri/static';
</script>

README

Install

$ npm install --save @celeri/static

Import

ES6 Modules

import { fileServer } from '@celeri/static';

CommonJS Modules

const { fileServer } = require('@celeri/static');

Usage

const staticServer = fileServer(__dirname + '/public');

serverOrEndpoint.use(staticServer);