0.1.1 • Published 5 years ago
@resourcebundles/static-server v0.1.1
@resourcebundles/static-server
Server that serves from a Resource Bundle.
Try out with example/example.rbn in this repository!
Installation
npm install -g @resourcebundles/static-serverUsage
CLI
rbn-static-server bundle.rbnoptions
--port: the port to listen to. Default:8080--host: the address to bind. Default:127.0.0.1
Fastify Plugin
import fastify from "fastify";
import { resourceBundleStaticPlugin } from "@resourcebundles/static-server";
const app = fastify();
app.register(resourceBundleStaticPlugin, {
file: "./bundle.rbn",
});