# swserver

> 긴급히 웹 서버가 필요할 때 유-용!

Latest version **1.0.4** (published 2023-07-04) · MIT license · 0 weekly downloads

## Install

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

Provides the command `swserver`.

## 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.4 |
| Published | 2023-07-04 |
| First published | 2018-08-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | hanul |

## Links

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

## Recent versions

- 1.0.4 (latest) — 2023-07-04
- 1.0.3 — 2021-09-05
- 1.0.2 — 2019-10-03
- 1.0.1 — 2018-12-03
- 1.0.0 — 2018-08-12

## README

# SimpleWebServer
긴급히 웹 서버가 필요할 때 유-용!

파일 하나, 85줄짜리 node.js 기반 코드입니다.

## 제공하는 기능
* root 경로로 접근 시 index.html 제공
* javascript, css, jpg, png 파일 제공
* 500, 404 오류 화면 제공

## 설정
맨 윗줄의 PORT를 수정해서 쓰시면 됩니다.
```javascript
var PORT = 8413;

...
```

## 실행
```
node SimpleWebServer.js
```

## NPM으로 설치 및 실행
[NPM](https://www.npmjs.com)으로도 설치 및 실행할 수 있습니다. 단, 이 경우 포트를 변경할 수 없고 기본 포트인 8413 포트를 사용해야 합니다.
```
npm install swserver -g
```
```
swserver
```

## 라이센스
[MIT](LICENSE)

## 작성자
[Young Jae Sim](https://github.com/Hanul)

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