Skip to main content
Module

x/discord_rpc_deno/deps.ts

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

Namespaces

Provides helper functions to manipulate Uint8Array byte slices that are not included on the Uint8Array prototype.

Utilities for working with OS-specific file paths.

Functions

Concatenate an array of Uint8Arrays.

Copy bytes from the src array to the dst array. Returns the number of bytes copied.

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

Check whether binary arrays are equal to each other.

Returns true if the source array contains the needle array, false otherwise.

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 Uint8Array 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.

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.

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