Skip to main content
Module

x/simple_utility/mod.ts

A handy utility collection.
Go to Latest
import * as simpleUtility from "https://deno.land/x/simple_utility@v0.0.4/mod.ts";

Functions

Since the unixtime that can be handled by the Date is in milliseconds, the argument of this method is internally multiplied by x1000.

Since the unixtime that can be handled by the Date is in milliseconds, this method output downscaled to 1/1000.

Convert formatted datetime string such as ISO8601 to unixtime.

Decompress "deflate" format (RFC1951) binary. Binaries containing header information like "gzip" (RFC1952) or "zlib" (RFC1950) cannot be decompressed.

Compress binary in "deflate" format (RFC1951). It does not include header information like "gzip" (RFC1952) or "zlib" (RFC1950) as it does purely "compression only".

In addition to leading and trailing spaces, tabs, carriage returns, and two or more consecutive spaces are converted to a single space.

Type Aliases

function returning arbitrary async types.

Possible types of JSON.

Possible input types for URLSearchParams.

function returning arbitrary types.