# expose-dir

> expose a folder over http

Latest version **0.0.2** (published 2020-08-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install expose-dir
pnpm add expose-dir
yarn add expose-dir
bun add expose-dir
```

Provides the command `expose-dir`.

## 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.2 |
| Published | 2020-08-28 |
| First published | 2020-08-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | @m-onz |
| Maintainers | yaus |
| Keywords | python -m SimpleHTTPServer, static file handler |

## Links

- npm: https://www.npmjs.com/package/expose-dir
- Repository: https://github.com/m-onz/expose-dir
- Homepage: https://github.com/m-onz/expose-dir#readme
- Issues: https://github.com/m-onz/expose-dir/issues
- npm.io page: https://npm.io/package/expose-dir

## Dependencies (1)

- [minimist](https://npm.io/package/minimist.md) ^1.2.5

## Recent versions

- 0.0.2 (latest) — 2020-08-28
- 1.0.0 — 2020-08-28

## README

# expose-dir

A bit like `python -m SimpleHTTPServer 3000` but its `expose-dir --port 3000`.
Serves a folder of assets for development mainly. It has a common list of file
 types. This module does not try to handle cases like Etags and caching and
  is just a simple tool.

## cli usage

```
cd ./website
expose-dir --port 3000
```

## library usage

```
var exposedir = require('expose-dir')
var http = require('http')

http.createServer(function (req, res) {
  exposedir.handler(req, res)
}).port(3000)

```

## install
```
npm i expose-dir -g
```

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