# shvidko

> simple http server implementation

Latest version **3.1.0** (published 2021-05-12) · MIT license · 0 weekly downloads

## Install

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

Provides the command `shvidko`.

## 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 | 3.1.0 |
| Published | 2021-05-12 |
| First published | 2020-12-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 62.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Bogdan Shmalko |
| Maintainers | bogdaxios |

## Links

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

## Recent versions

- 3.1.0 (latest) — 2021-05-12
- 3.0.3 — 2021-04-19
- 3.0.2 — 2021-04-19
- 3.0.1 — 2021-04-19
- 3.0.0 — 2021-04-19
- 2.2.0 — 2021-01-16
- 2.1.2 — 2021-01-12
- 2.1.1 — 2021-01-11
- 2.0.1 — 2021-01-11
- 2.0.0 — 2021-01-10
- 1.4.0 — 2021-01-10
- 1.3.4 — 2021-01-07
- 1.3.3 — 2021-01-03
- 1.3.2 — 2021-01-03
- 1.3.1 — 2021-01-03
- … 9 more at https://npm.io/package/shvidko/versions

## README

![Shvidko Logo](https://i.ibb.co/YWf1Dkq/shvidko-logo.png)

  Lightweight and fast http server with built-in sessions, file storage and more

```js
const shvidko = require("shvidko");

const app = shvidko.createServer().listen(3001);
app.use(shvidko.middleware.sender()); // to use res.send (send data to the client)

// url : http://localhost:3001/
app.get("/", (req, res) => {
    res.send("Hello world!");
});
```

## Installation

This is a [Node.js](https://nodejs.org/en/) module available through the
[npm registry](https://www.npmjs.com/).

Before installing, [download and install Node.js](https://nodejs.org/en/download/).
Node.js.

If this is a brand new project, make sure to create a `package.json` first with
the [`npm init` command](https://docs.npmjs.com/creating-a-package-json-file).

Installation is done using the
[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):

```bash
$ npm install shvidko
```

## Fast start

```bash
$ npx shvidko
```
OR
```bash
$ node ./node_modules/shvidko/bin/shvidko -path "./"
```

## Features

  * Robust routing
  * Focus on high performance
  * Content negotiation
  * Executable for generating applications quickly
  * Built-in session support
  * Built-in file storage support
  * Encapsulation requests
  * Support for middleware
  * Examples for different cases

## Examples

  To view the examples, clone the Shvidko repo and install the dependencies:

```bash
$ git clone https://github.com/BohdanShmalko/shvidko.git
$ cd shvidko
$ npm install
$ cd examples
```

Then run the one of examples

```bash
$ node simple
$ node complex 
$ node cors 
$ node database 
$ node fileStorage 
$ node parsers 
$ node requestsFromAnotherFile 
$ node secure 
$ node sessions 
$ node subrouters 
```

## License

  [MIT](LICENSE)

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