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

Symmetricly decrypts bytes using key

Symmetricly encrypts bytes using key

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.

Generates a key pair for asymmetric encryptions using the RSA algorithm

Generates an encryption key for symmetric encryptions using the AES algorithm

Generates an asymmetric key pair for signing or encryption purposes

Generates a key pair for asymmetric signings using the EC algorithm

Hashes a password into a symmetric encryption key for encryptions using the AES algorithm

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.

Creates a digital signature using a key pair

Verifies that signature is from the private key corresponding to publicKey