# griffinwebserver

> Basic webserver serving all files in www folder

Latest version **1.0.0** (published 2022-05-13) · ISC license · 0 weekly downloads

## Install

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

## 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 | 1.0.0 |
| Published | 2022-05-13 |
| First published | 2022-05-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| Author | AndreasGrip |
| Maintainers | andreasgrip |

## Links

- npm: https://www.npmjs.com/package/griffinwebserver
- npm.io page: https://npm.io/package/griffinwebserver

## Dependencies (4)

- [fs](https://npm.io/package/fs.md) 0.0.1-security
- [url](https://npm.io/package/url.md) ^0.11.0
- [http](https://npm.io/package/http.md) 0.0.0
- [path](https://npm.io/package/path.md) ^0.12.7

## Recent versions

- 1.0.0 (latest) — 2022-05-13

## README

This is just a basic webserver that will serve any fill inside your projects www folder.
with no requirements at all = no node_modules folder.

Reason for creating this was that I ended up needing a server like this for most of my project and got tired of rewrite/copy it all the time.

Usage:
Once you added the webserver.js to your project. Create a www folder and it's content will be served. If nothing in the folder it will try to serve index.html

node ./example.js
Show how to do it.
The file contains the following line.

const webserver = require('./webserver').create({port: 8080});

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