# advanced-rpg-table

> A simple embeddable table and random generator for use with html.

Latest version **2.0.2** (published 2020-04-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install advanced-rpg-table
pnpm add advanced-rpg-table
yarn add advanced-rpg-table
bun add advanced-rpg-table
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2020-04-19 |
| First published | 2020-04-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 14 |
| Unpacked size | 732.8 KB |
| Known vulnerabilities | 0 (+21 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | George Bora |
| Maintainers | gbora |
| Keywords | rpg |

## Links

- npm: https://www.npmjs.com/package/advanced-rpg-table
- Repository: https://github.com/GBora/advanced-rpg-table
- Issues: https://github.com/GBora/advanced-rpg-table/issues
- npm.io page: https://npm.io/package/advanced-rpg-table

## Dependencies (14)

- [rxjs](https://npm.io/package/rxjs.md) ~6.5.4
- [tslib](https://npm.io/package/tslib.md) ^1.10.0
- [zone.js](https://npm.io/package/zone.js.md) ~0.10.2
- [@angular/core](https://npm.io/package/@angular/core.md) ~9.1.0
- [@angular/forms](https://npm.io/package/@angular/forms.md) ~9.1.0
- [@angular/common](https://npm.io/package/@angular/common.md) ~9.1.0
- [@angular/router](https://npm.io/package/@angular/router.md) ~9.1.0
- [@angular/compiler](https://npm.io/package/@angular/compiler.md) ~9.1.0
- [@angular/elements](https://npm.io/package/@angular/elements.md) ^9.1.0
- [@angular/animations](https://npm.io/package/@angular/animations.md) ~9.1.0
- [@angular/platform-browser](https://npm.io/package/@angular/platform-browser.md) ~9.1.0
- [document-register-element](https://npm.io/package/document-register-element.md) ^1.7.2
- [@webcomponents/custom-elements](https://npm.io/package/@webcomponents/custom-elements.md) ^1.4.1
- [@angular/platform-browser-dynamic](https://npm.io/package/@angular/platform-browser-dynamic.md) ~9.1.0

## Recent versions

- 2.0.2 (latest) — 2020-04-19
- 2.0.1 — 2020-04-19
- 2.0.0 — 2020-04-19
- 1.0.3 — 2020-04-06
- 1.0.2 — 2020-04-05
- 1.0.1 — 2020-04-05

## README

# Advanced Rpg Table

A simple embeddable table and random generator.

## Usage

In your html:

Before you write the table you have to link to this script, this might be in the head of the site but not necessarily.

```
<script src="https://unpkg.com/advanced-rpg-table" type="module"></script>
```

Afterwards in your html just add the advanced table, being careful with the form of the text within the tag.

```
  <advanced-table subject="weapon">
    {
      "type": ["dagger", "sword", "bow", "spear"],
      "element": ["fire", "water", "air", "mind"],
      "aligment": ["divine","infernal","druidic"]
    }
  </advanced-table>
```
This should generate:

![example](example.png)


If the text within doesn't respect this form (it should be a JSON object) the table will not be generated correctly.

Another example of a possible configuration:

```
  <advanced-table subject="ship">
    {
      "designation": ["scout", "trader", "warship", "colony ship", "science ship"],
      "weapons": ["laser", "plasma", "mass driver"],
      "engine": ["warp drive","hyper drive", "jump drive"],
      "captain": ["rookie", "veteran", "diplomat", "pirate"]
    }
  </advanced-table>
```
## Previous versions

Versions with 1.x.x required you to define the config in js then pass it to the tag, with 2.0.0 this has changed and it is a breaking change, the old code will remain on npm but if someone is using it I would advise to go to the latest version.

---
_Source: https://npm.io/package/advanced-rpg-table · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
