0.0.8 • Published 8 years ago

arbita v0.0.8

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

arbita

Flexible random redirector for sharing your favorite media.

Installing

# 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/.

$ 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.

$ arbita [file] [port=80]
0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago