# @0xcap/loot-table

> A simple loot table implementation in TypeScript.

Latest version **2.0.0** (published 2026-10-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @0xcap/loot-table
pnpm add @0xcap/loot-table
yarn add @0xcap/loot-table
bun add @0xcap/loot-table
```

## Health

**Score 70/100 (B)** — status: active.

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2026-10-13 |
| First published | 2020-07-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Andrea Cappuccio |
| Maintainers | 0xcap |
| Keywords | loot, table, random, drops |

## Links

- npm: https://www.npmjs.com/package/@0xcap/loot-table
- Repository: https://github.com/0xCAP/loot-table
- Homepage: https://github.com/0xCAP/loot-table#readme
- Issues: https://github.com/0xCAP/loot-table/issues
- npm.io page: https://npm.io/package/@0xcap/loot-table

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2026-10-13
- 1.0.1 — 2022-04-17
- 1.0.0 — 2022-04-17
- 0.2.0 — 2020-07-08
- 0.1.0 — 2020-07-08

## README

# loot-table

[![MIT License](https://img.shields.io/apm/l/atomic-design-ui.svg?)](https://github.com/tterb/atomic-design-ui/blob/master/LICENSEs)
[![GitHub issues open](https://img.shields.io/github/issues/0xCAP/loot-table.svg)]()

A simple loot table implementation in TypeScript.

## Installation

#### Using yarn

`yarn add @0xcap/loot-table`

#### Using pnpm

`pnpm add @0xcap/loot-table`

#### Using npm

`npm install @0xcap/loot-table`

## Usage

```typescript
import { LootTable } from "@0xcap/loot-table";

const lootTable = new LootTable();

lootTable.addItem("item1", 2);
lootTable.addItem("item2", 4);

const drop = lootTable.dropItem();
```

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