# arbita

> Flexible random redirector for sharing your favorite media.

Latest version **0.0.8** (published 2016-05-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install arbita
pnpm add arbita
yarn add arbita
bun add arbita
```

Provides the command `arbita`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2016-05-26 |
| First published | 2016-05-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | synchronous |
| Maintainers | synchronous |
| Keywords | redirector, random, arbitrary, express, media |

## Links

- npm: https://www.npmjs.com/package/arbita
- Repository: https://github.com/edge/arbita
- Homepage: https://github.com/edge/arbita#readme
- Issues: https://github.com/edge/arbita/issues
- npm.io page: https://npm.io/package/arbita

## Dependencies (2)

- [morgan](https://npm.io/package/morgan.md) ^1.7.0
- [express](https://npm.io/package/express.md) ^4.13.4

## Recent versions

- 0.0.8 (latest) — 2016-05-26
- 0.0.7 — 2016-05-26
- 0.0.6 — 2016-05-26
- 0.0.5 — 2016-05-26
- 0.0.4 — 2016-05-26
- 0.0.3 — 2016-05-26
- 0.0.2 — 2016-05-26
- 0.0.1 — 2016-05-26

## README

# arbita
Flexible random redirector for sharing your favorite media.

## Installing
```sh
# npm i -g arbita
```

## Usage
Create a links file. File extensions will be processed as:
- `.js` exporting an `express.Router` instance
- `.json` with properties:
  - `links`: **Array** of links
  - `sub` [optional]: **Object** containing route names as keys and objects of the same structure (`{ links, [sub] }`) as values
- otherwise: a list of links separated by lines, ignoring `#` comments

For more information, visit [examples/](https://github.com/edge/arbita/tree/master/examples).

```sh
$ cat > search
  # Google
  https://www.google.com/
  https://www.yahoo.com/
# arbita search
```

A server now runs on port 80, which will randomly redirect you to Google or Yahoo.

`arbita` serves on port 80 by default. To serve on a different port, pass it as the second argument.

```sh
$ arbita [file] [port=80]
```

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