# flyswatter

> self-signing static file server + dev proxy

Latest version **2.2.0** (published 2020-01-29) · MIT license · 0 weekly downloads

## Install

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

Provides the command `flyswatter`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2020-01-29 |
| First published | 2017-01-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 11.3 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | @bcruddy |
| Maintainers | bcruddy |

## Links

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

## Dependencies (7)

- [pem](https://npm.io/package/pem.md) ^1.14.4
- [axios](https://npm.io/package/axios.md) ^0.19.2
- [chalk](https://npm.io/package/chalk.md) ^2.4.2
- [yargs](https://npm.io/package/yargs.md) ^6.6.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [express](https://npm.io/package/express.md) ^4.17.1
- [body-parser](https://npm.io/package/body-parser.md) ^1.19.0

## Recent versions

- 2.2.0 (latest) — 2020-01-29
- 2.1.0 — 2018-02-08
- 2.0.7 — 2018-02-07
- 2.0.6 — 2018-02-07
- 2.0.5 — 2018-02-07
- 2.0.4 — 2018-02-07
- 2.0.3 — 2018-02-07
- 2.0.2 — 2018-02-07
- 2.0.1 — 2018-02-07
- 2.0.0 — 2018-02-07
- 1.0.2 — 2017-04-05
- 1.0.1 — 2017-01-19
- 1.0.0 — 2017-01-19

## README

# flyswatter [![npm version](https://badge.fury.io/js/flyswatter.svg)](https://badge.fury.io/js/flyswatter)

Simple static file server built on express.

## cli usage

Install globally to run `flyswatter` and serve static files from anywhere.

    $ flyswatter --https=false --port=9300 --path=./docs

## programatic usage

    const flyswatter = require('flyswatter');
    flyswatter({https: false, path: './docs'}).then(server => {
        server.listen(9300, callback);
    });

_*note the `port` config option must be provided explicitly to `server.listen`_

## config
| parameter   | default     |
| ----------- | ----------- |
| `https`     | `true`      |
| `port`      | `3000`      |
| `path`      | `./`        |

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