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.10/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.

v
stripColor
deprecated

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

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

f
copy
deprecated

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.

Return the directory path of a path.

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

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

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.

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

f
readLines
deprecated

Read strings line-by-line from a Reader.

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

Resolves path segments into a path

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.