Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno/cli/js/util.ts

A modern runtime for JavaScript and TypeScript.
Go to Latest
import * as deno from "https://deno.land/x/deno@v0.30.0/cli/js/util.ts";

Functions

Return the common path shared by the paths.

Determines whether an object has a property with the specified name. Avoid calling prototype builtin hasOwnProperty for two reasons:

Utility function to turn the number of bytes into a human readable unit

Debug logging for deno. Enable with the --log-debug or -D command line flag.

Resolves . and .. elements in a path with directory names

Split a number into two parts: lower 32 bit and higher 32 bit (as if the number is represented as uint64.)

Type Aliases

A Resolvable is a Promise with the reject and resolve functions placed as methods on the promise object itself. It allows you to do: