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

Namespaces

Provides tools for working with JSONC (JSON with comments). Currently, this module only provides a means of parsing JSONC. JSONC serialization is not yet supported.

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
path.posix
deprecated
v
path.win32
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).

The nil UUID is special form of UUID that is specified to have all 128 bits set to zero.

Functions

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

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.

Resolve a Promise after a given amount of milliseconds.

Return the directory path of a path.

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

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

f
parse
deprecated

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. It does the opposite of parse.

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. Use format to reverse the result.

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

f
stripColor
deprecated

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.

Options for parse.

Options for globToRegExp.

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 in generate.

Type Aliases

T
Args
deprecated

The value returned from parse.

The type of the result of parsing JSON.