@resourcebundles/static-server
v0.1.1
Published
Static server that serves from Resource Bundle
Downloads
5
Readme
@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-server
Usage
CLI
rbn-static-server bundle.rbn
options
--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",
});