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

x/aleph/deps.ts

The Full-stack Framework in Deno.
Go to Latest
import * as aleph from "https://deno.land/x/aleph@v0.3.0-alpha.6/deps.ts";

Classes

BufReader implements buffering for a Reader object.

BufWriter implements buffering for an deno.Writer object. If an error occurs writing to a Writer, no more data will be accepted and all subsequent writes, and flush(), will return the error. After all data has been written, the client should call the flush() method to guarantee all data has been forwarded to the underlying deno.Writer.

BufWriterSync implements buffering for a deno.WriterSync object. If an error occurs writing to a WriterSync, no more data will be accepted and all subsequent writes, and flush(), will return the error. After all data has been written, the client should call the flush() method to guarantee all data has been forwarded to the underlying deno.WriterSync.

A class to extract a tar archive

Functions

Decodes a given RFC4648 base64 encoded string

CREDIT: https://gist.github.com/enepomnyaschih/72c423f727d395eeaa09697058238727 Encodes a given Uint8Array, ArrayBuffer or string into RFC4648 base64 representation

Compress a byte array.

Decompress a byte array.

Read delimited bytes from a Reader.

Read strings line-by-line from a Reader.

Read delimited strings from a Reader.

Concatenate multiple binary arrays and return new one.

Check source array contains pattern array.

Copy bytes from one Uint8Array to another. Bytes from src which don't fit into dst will not be copied.

Check whether binary array ends with suffix.

Check whether binary arrays are equal to each other.

Find first index of binary pattern from source. If not found, then return -1

Find last index of binary pattern from source. If not found, then return -1.

Repeat bytes. returns a new byte slice consisting of count copies of b.

Check whether binary array starts with prefix.

Set background color to black.

Set background color to blue.

Set background color to bright black.

Set background color to bright blue.

Set background color to bright cyan.

Set background color to bright green.

Set background color to bright magenta.

Set background color to bright red.

Set background color to bright white.

Set background color to bright yellow.

Set background color to cyan.

Set background color to green.

Set background color to magenta.

Set background color to red.

Set background color using 24bit rgb. color can be a number in range 0x000000 to 0xffffff or an Rgb.

Set background color using paletted 8bit colors. https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit

Set background color to white.

Set background color to yellow.

Set text color to black.

Set text color to blue.

Make the text bold.

Set text color to bright black.

Set text color to bright blue.

Set text color to bright cyan.

Set text color to bright green.

Set text color to bright magenta.

Set text color to bright red.

Set text color to bright white.

Set text color to bright yellow.

Set text color to cyan.

The text emits only a small amount of light.

Get whether text color change is enabled or disabled.

Set text color to gray.

Set text color to green.

Make the text hidden.

Invert background color and text color.

Make the text italic.

Set text color to magenta.

Set text color to red.

Reset the text modified

Set text color using 24bit rgb. color can be a number in range 0x000000 to 0xffffff or an Rgb.

Set text color using paletted 8bit colors. https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit

Set changing text color to enabled or disabled

Put horizontal line through the center of the text.

Remove ANSI escape codes from the string.

Make the text underline.

Set text color to white.

Set text color to yellow.

Ensures that the directory exists. If the directory structure does not exist, it is created. Like mkdir -p. Requires the --allow-read and --allow-write flag.

Start an HTTP server with given options and request handler

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

Convert a glob string to a regular expression.

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.

Create a HTTP server

Create an HTTPS server with given options

Walks the file tree rooted at root, yielding each file or directory in the tree filtered according to the given options. The files are walked in lexical order, which makes the output deterministic but means that for very large directories walk() can be inefficient.

Returns true if input headers are usable for WebSocket, otherwise false.

Upgrade inputted TCP connection into WebSocket connection.

Create value of Sec-WebSocket-Accept header from inputted nonce.

Returns base64 encoded 16 bytes string for Sec-WebSocket-Key header.

Returns true if input value is a WebSocketCloseEvent, false otherwise.

Returns true if input value is a WebSocketPingEvent, false otherwise.

Returns true if input value is a WebSocketPongEvent, false otherwise.

Read websocket frame from given BufReader

Unmask masked websocket payload

Write WebSocket frame to inputted writer.

Interfaces

Result type returned by of BufReader.readLine().

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