Skip to main content
Module

x/dtils/mod.ts

The best unofficial library of utilities for Deno applications
Go to Latest
import * as dtils from "https://deno.land/x/dtils@1.3.1/mod.ts";

Functions

Returns true if arrays are found to match in a shallow-equal test

Chooses a random item from the array and returns it

Sets the amount of zeros before a number. If digits is null, there will be no extra digits in front of the number

Format date using the specified pattern.

Parses a string of query string parameters

Prepends new items onto items

Returns a random number between min and max (both included)

Executes shell code. Returns the exit code of the sh runner

Executes shell code and captures the output.

Executes shell code and ignores the output, except when the program is unsuccessful. In that case, the stderr is printed.