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

x/pup/deps.ts

Universal process manager built in Deno
Go to Latest
import * as pup from "https://deno.land/x/pup@1.0.0-beta.26/deps.ts";

Namespaces

N
jsonc
deprecated

Utilities for working with OS-specific file paths.

Generators and validators for UUIDs for versions v1, v4 and v5.

N
z

Variables

v
$

Default $ instance where commands may be executed.

Functions

Copies from src to dst until either EOF (null) is read from src or an error occurs. It resolves to the number of bytes copied or rejects with the first error encountered while copying.

Cron entrypoint

Creates a debounced function that delays the given func by a given wait time in milliseconds. If the method is called again before the timeout expires, the previous call will be aborted.

Creates a Promise with the reject and resolve functions placed as methods on the promise object itself.

Resolve a Promise after a given amount of milliseconds.

f
existsSync
deprecated

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

Convert a glob string to a regular expression.

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

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.

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.

Read strings line-by-line from a Reader.

Remove ANSI escape codes from the string.

Uninstalls a command from a systemd service using the currently installed service manager. Throws an error on failure, or unsupported system.

Check if the passed UUID is the nil UUID.

Generates a RFC4122 v1 UUID (time-based).

Validates the UUID v1.

Validate that the passed UUID is an RFC4122 v4 UUID.

Generate a RFC4122 v5 UUID (SHA-1 namespace).

Validate that the passed UUID is an RFC4122 v5 UUID.

Test a string to see if it is a valid UUID.

Detect RFC version of a UUID.

Interfaces

Options for the installService function.

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

Options for the uninstallService function.

The options used for generating a v1 UUID.

Type Aliases

The value returned from parse.

Valid types as a result of JSON parsing