# @resourcebundles/static-server

> Static server that serves from Resource Bundle

Latest version **0.1.1** (published 2021-03-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @resourcebundles/static-server
pnpm add @resourcebundles/static-server
yarn add @resourcebundles/static-server
bun add @resourcebundles/static-server
```

Provides the command `rbn-static-server`.

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2021-03-13 |
| First published | 2021-03-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 8.1 KB |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 19 |
| Author | uhyo |
| Maintainers | resourcebundles |
| Keywords | resourcebundles |

## Links

- npm: https://www.npmjs.com/package/@resourcebundles/static-server
- Repository: https://github.com/uhyo/resourcebundles
- Homepage: https://github.com/uhyo/resourcebundles#readme
- Issues: https://github.com/uhyo/resourcebundles/issues
- npm.io page: https://npm.io/package/@resourcebundles/static-server

## Dependencies (4)

- [yargs](https://npm.io/package/yargs.md) ^16.2.0
- [fastify](https://npm.io/package/fastify.md) ^3.14.0
- [fastify-plugin](https://npm.io/package/fastify-plugin.md) ^3.0.0
- [@resourcebundles/format](https://npm.io/package/@resourcebundles/format.md) 0.1.1

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2021-03-13
- 0.1.0 — 2021-03-13

## README

# `@resourcebundles/static-server`

Server that serves from a Resource Bundle.

Try out with `example/example.rbn` in this repository!

## Installation

```sh
npm install -g @resourcebundles/static-server
```

## Usage

### CLI

```sh
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

```ts
import fastify from "fastify";
import { resourceBundleStaticPlugin } from "@resourcebundles/static-server";

const app = fastify();

app.register(resourceBundleStaticPlugin, {
  file: "./bundle.rbn",
});
```

---
_Source: https://npm.io/package/@resourcebundles/static-server · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
