Skip to main content
Module

x/deno_slack_hooks/deps.ts

Helper library implementing the contract between the Slack CLI and Slack application SDKs
Go to Latest
import * as denoSlackHooks from "https://deno.land/x/deno_slack_hooks@0.10.0/deps.ts";

Variables

Based on the arguments provided by the CLI to the SDK hook process, returns an appropriate Protocol interface for communicating with the CLI over the specified protocol.

Functions

Merges the two given Records, recursively merging any nested Records with the second collection overriding the first in case of conflict

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.

Take a set of command line arguments, optionally with a set of options, and return an object representing the flags found in the passed arguments.

Converts a JSON with Comments (JSONC) string into an object. If a syntax error is found, throw a SyntaxError.

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.

Interfaces

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

An interface encapsulating a specific set of communication rules that both the SDK and the CLI implement.