import * as dtils from "https://deno.land/x/dtils@2.2.1/mod.ts";
Provides a high-level api for standard application env variables (TODO reference blog post of standards)
We make heavy use of caching in this module because we don't want to overload the user with permission prompts to these env vars
Functions
Returns true if arrays are found to match in a shallow-equal test | |
Chooses a random item from the array and returns it | |
Asymmetrically decrypt | |
Asymmetrically decrypt | |
Symmetrically decrypt bytes using | |
Symmetrically decrypt bytes using | |
Asymmetrically encrypt | |
Asymmetrically encrypt | |
Symmetrically encrypt bytes using | |
Symmetrically encrypt bytes using | |
f exec | Executes |
Executes | |
Executes | |
Executes | |
Sets the amount of zeros before a number. If | |
Format | |
Generates a base64 encoded key pair for asymmetric encryptions using the RSA algorithm | |
Generates a key pair for asymmetric encryptions using the RSA algorithm | |
Generates a base64 encoded encryption key for symmetric encryptions using the AES algorithm | |
Generates an encryption key for symmetric encryptions using the AES algorithm | |
Generates an asymmetric, base64 encoded key pair for signing or encryption purposes | |
Generates an asymmetric key pair for signing or encryption purposes | |
Generates a base64 encoded key pair for asymmetric signings using the EC algorithm | |
Generates a key pair for asymmetric signings using the EC algorithm | |
Get the current env level ($ENV). Assumes "dev" if invalid or unspecified | |
Get the current log level ($LOG_LEVEL). Assumes "normal" if invalid or unspecified | |
Get the current deployment disposition ($DEPLOY). Assumes false if unset, 0, or false | |
Get the current disposition for reloading dependencies ($RELOAD_DEPS). Assumes false if unset, 0, or false | |
Get the standard application env vars (ENV, RELOAD_DEPS, DEPLOY, and LOG_LEVEL) as an env object | |
Hashes a password into a symmetric encryption key for encryptions using the AES algorithm. Function assumes that password and salt are utf characters, not base64 | |
Hashes a password into a symmetric encryption key for encryptions using the AES algorithm | |
f isAM | |
Parses a string of query string parameters | |
Prepends new items onto items | |
Returns a random number between | |
Recursively read all files in | |
f sh | Executes |
Executes | |
Executes | |
Executes | |
f sign | Creates a digital signature using a base64 encoded EC private key. Note: function will error if the key passed in is not a private key |
Creates a digital signature using an EC private key. Note: function will error if the key passed in is not a private key | |
Verifies that | |
Verifies that | |
f wrap | |
Type Aliases
T Env | Provides a high-level api for standard application env variables (TODO reference blog post of standards) |
T Json | |