import * as simpleUtility from "https://deno.land/x/simple_utility@v1.5.2/mod.ts";
Functions
Accurately recognize string that contain character above | |
Convert from binary to base64 encoded DataURL.
Default MIME type is | |
Convert from base64 encoded string to binary. | |
Convert from binary to base64 encoded string. | |
Convert from blob to specified data type. | |
Concat multiple buffer sources into single Uint8Array. | |
Clean up text with | |
Return system-wide application data directory path for each OS.
| |
| |
Applies | |
Applies | |
Decompress "deflate" format binary. Cannot decompress such as "gzip" (RFC1952) or "zlib" (RFC1950) that contain header. | |
Compress binary with "deflate" format. Does not contain header such as "gzip" (RFC1952) or "zlib" (RFC1950). | |
Derive SHA2 hash value from binary. | |
Convert environment variable to specified type and get. | |
Extended fetch function that can specify response type directly. | |
Convert half-width Japanese kana to full-width and full-width alphanumeric symbols to half-width. | |
Generate random binary with any number of bytes. | |
Convert from hex string to binary. | |
Convert from binary to hex string. | |
Return system-wide home path for each OS.
| |
Define import assertion on dynamic import. Default to JSON. | |
Are you running on Windows? | |
Read JSON file and convert to object. If JSON file does not exist create new file with default value. Argument default value also act as type definition. | |
Read JSON file and convert to object. | |
Convert from object to JSON and write to file. | |
Instantiate logger with general configuration.
Output to console and also to file if | |
Return directory of | |
Decode byte array in "minipack" format. | |
Concatenate files with "minipack" format. | |
f pad0 | Create string with zero padding at beginning of number. Output is 2 digits by default. |
Decrypt binary. Algorithm is AES-GCM with 128 bits key, 128 bits tag and 96 bits IV. IV is read from head of cipher. | |
Encrypt binary. Algorithm is AES-GCM with 128 bits key, 128 bits tag and 96 bits IV. IV is prepended to cipher. | |
Generate exportable public-key pair for ECDH. Curve algorithm is "NIST P-256". | |
Generate exportable public-key pair for ECDSA. Curve algorithm is "NIST P-256". | |
Create signature using private-key. | |
Verify signature using public-key. | |
Run command as subprocess. | |
Convert from backslash to slash. Useful for converting from Windows path to UNIX path. | |
Convert from slash to backslash. Useful for converting from UNIX path to Windows path. | |
Convert from stream to binary. | |
Convert from binary to stream. | |
Return system-wide temporary directory path for each OS.
| |
Trim head and tail blank, remove CR and consecutive space (tab, LF) to single space (tab, LF). | |
Convert from UTF-8 binary to string. | |
Convert from string to UTF-8 binary. | |
Returns | |
Return UNIX time in seconds. If no argument will be calculate at current time. | |
Convert from formatted datetime string such as ISO8601 to UNIX time in seconds. |
Interfaces
Assignment of types convertible from blob. | |
Map of env value type and string specify them. | |
| |
Map of fetch response type and string specify them. |
Type Aliases
Simple filename and binary pair that make up file. | |
T Opt | Make interfaces acceptable in |
Serialized |