Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/levo/src/deps.ts

Server side rendering with The Elm Architecture in Deno
Latest
import * as levo from "https://deno.land/x/levo@v0.0.27/src/deps.ts";

Enums

HTTP status codes

Functions

Make an assertion, error will be thrown if expr does not have truthy value.

Make an assertion that actual and expected are equal, deeply. If not deeply equal, then throw.

Copy a file or directory. The directory can have contents. Like cp -r. Requires the --allow-read and --allow-write flag.

Test whether or not the given path exists by checking with the file system

Test whether or not the given path exists by checking with the file system

Determines the common path from a set of paths, using an optional separator, which defaults to the OS default separator.

Generate a regex based on glob pattern and options This was meant to be using the the fs.walk function but can be used anywhere else. Examples:

Test whether the given string is a glob

Like join(), but doesn't collapse "**/.." when globstar is true.

Like normalize(), but doesn't collapse "**/.." when globstar is true.

Parse addr from string

Set the cookie header properly in the Response to delete it

Parse the cookies of the Server Request

Start an HTTP server with given options and request handler

Start an HTTPS server with given options and request handler

Create a HTTP server

Create an HTTPS server with given options

Set the cookie header properly in the Response

Interfaces

A parsed path object generated by path.parse() or consumed by path.format().

Interface of HTTP server response. If body is a Reader, response would be chunked. If body is a string, it would be UTF-8 encoded by default.

Type Aliases

Options for creating an HTTP server.

Options for creating an HTTPS server.