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

x/discord_rpc_deno/deps.ts

port of @xhayper/discord-rpc to deno
Latest
import * as discordRpcDeno from "https://deno.land/x/discord_rpc_deno@v1.1.4/deps.ts";

Namespaces

Helper functions for working with Uint8Array byte slices.

Utilities for working with OS-specific file paths.

Functions

Concatenate an array of byte slices into a single slice.

Copy bytes from the source array to the destination array and returns the number of bytes copied.

Returns true if the suffix array appears at the end of the source array, false otherwise.

Check whether byte slices are equal to each other.

Determines whether the source array contains the needle array.

Returns the index of the first occurrence of the needle array in the source array, or -1 if it is not present.

Returns the index of the last occurrence of the needle array in the source array, or -1 if it is not present.

Returns a new byte slice composed of count repetitions of the source array.

Returns true if the prefix array appears at the start of the source array, false otherwise.

Return the last portion of a path. Trailing directory separators are ignored, and optional suffix is removed.

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

Return the directory path of a path.

Return the extension of the path with leading period.

Generate a path from FormatInputPathObject object. It does the opposite of parse.

Converts a file URL to a path string.

Convert a glob string to a regular expression.

Verifies whether provided path is absolute

Test whether the given string is a glob

Join all given a sequence of paths,then normalizes the resulting path.

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

Normalize the path, resolving '..' and '.' segments. Note that resolving these segments does not necessarily mean that all will be eliminated. A '..' at the top-level will be preserved, and an empty path is canonically '.'.

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

Return a ParsedPath object of the path. Use format to reverse the result.

Return the relative path from from to to based on current working directory.

Resolves path segments into a path

Converts a path string to a file URL.

Resolves path to a namespace path