https://github.com/danielb2/hapi-runplugin
Runs a hapi plugin and uses blipp to output route info
https://github.com/danielb2/hapi-runplugin
Last synced: about 1 month ago
JSON representation
Runs a hapi plugin and uses blipp to output route info
- Host: GitHub
- URL: https://github.com/danielb2/hapi-runplugin
- Owner: danielb2
- Created: 2016-02-12T19:28:31.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-07-30T05:32:13.000Z (over 8 years ago)
- Last Synced: 2025-10-12T23:41:42.729Z (5 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hapi-runplugin
Runs a hapi server using the plugin and uses
[blipp](https://github.com/danielb2/blipp) to output route info
Useful for easily displaying route info and for testing the plugin
## Command Line
**hapi-runplugin** supports the following command line options:
- `-P`, `--port` - port to run the server (3000)
- `-h`, `--help` - display help
- `-l`, `--labels` - additional label connections
- `-o`, `--options` - JSON file containing options to pass to plugin
- `-p`, `--path` - path to plugin or installed plugin name (CWD)
- `-s`, `--show` - shows requests to the server
- `-d`, `--debug` - print hapi debug info
### Example:
``` bash
$ npm install hapi-runplugin hapi-info -g
$ hapi-runplugin -p hapi-info
http://sanji.local:3000
GET /hapi-info
```