Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.
/ flitz Public archive

A lightweight and extremly fast HTTP server with all basics.

License

Notifications You must be signed in to change notification settings

egodigital/flitz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm

flitz

flitz [ˈflɪt͡s] is a lightweight and extremly fast HTTP server with all basics for Node 10+, wriiten in TypeScript.

Install

Run

npm install --save flitz

from the folder, where your package.json is stored.

Usage

const flitz = require('flitz').default;

const run = async () => {
  const app = flitz();

  app.get('/', async (req, res) => {
    res.write('Hello world!');
    res.end();
  });

  await app.listen(3000);
};

run();

Or the TypeScript way:

import flitz from 'flitz';

const run = async () => {
  const app = flitz();

  app.get('/', async (req, res) => {
    res.write('Hello world!');
    res.end();
  });

  await app.listen(3000);
};

run();

TypeScript

TypeScript is optionally supported. The module contains its own definition files.

License

MIT © Marcel Kloubert

About

A lightweight and extremly fast HTTP server with all basics.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published