An open API service indexing awesome lists of open source software.

https://github.com/seldszar/stug

Simple web server broadcasting file changes through WebSocket.
https://github.com/seldszar/stug

filesystem watcher webserver websocket

Last synced: 2 months ago
JSON representation

Simple web server broadcasting file changes through WebSocket.

Awesome Lists containing this project

README

          

# Stug

> Firing a sticky, toxic, explosive compound, the Stug Gel Gun offers multiple ejection modes, delivering maximum damage in all situations.

Simple web server broadcasting file changes through WebSocket.

## Table of Contents

- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Usage](#usage)
- [Author](#author)
- [License](#license)

## Prerequisites

- [Node.js](https://nodejs.org)

## Installation

```bash
npm install seldszar/stug --global
```

## Usage

### By using default options

Open a command terminal in the folder you want to use then type the following command.

```bash
$ stug
```

### By using a custom folder

Instead of going to the folder you want to use, you can tell the program to use another one by using the `base` option.

```bash
$ stug --base=
```

### By using a custom host and/or port

If for some reasons you want to change the host and/or port, you can customize by using the `host` and `port` options.

```bash
$ stug --host= --port=
```

## Author

Alexandre Breteau - [@0xSeldszar](https://twitter.com/0xSeldszar)

## License

MIT © [Alexandre Breteau](https://seldszar.fr)