#@tumau/url-parser

Url parser for @tumau/core

#Tumau

This package is part of the tumau family. Make sure to read the documentation of tumau first !

#Gist

import { TumauServer, Response, Middleware } from '@tumau/core';
import { UrlParser } from '@tumau/url-parser';

const server = TumauServer.create(
  Middleware.compose(UrlParser(), ctx =>
    Response.create({
      body: JSON.stringify(ctx.parsedUrl),
    })
  )
);

server.listen(3002);