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-rc.7/deps.ts";

Namespaces

parse function for parsing JSONC (JSON with Comments) strings.

Utilities for working with OS-specific file paths.

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

N
z

Variables

v
$

Default $ instance where commands may be executed.

Name string is a fully-qualified domain name.

Name string is an ISO OID.

Name string is a URL.

Name string is an X.500 DN (in DER or a text output format).

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.

Test whether or not the given path exists by checking with the file system. Please consider to check if the path is readable and either a file or a directory by providing additional options:

Convert a glob string to a regular expression.

Greater than comparison

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

Less than comparison

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.

Attempt to parse a string as a semantic version, returning either a SemVer object or throws a TypeError.

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.

Generate a RFC4122 v3 UUID (MD5 namespace).

Validate that the passed UUID is an RFC4122 v3 UUID.

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().

A SemVer object parsed into its constituent parts.

Options for the uninstallService function.

The options used for generating a v1 UUID.

Type Aliases

The value returned from parse.

The type of the result of parsing JSON.