Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/simple_utility/deps.ts

Useful snippet collection.
Go to Latest
import * as simpleUtility from "https://deno.land/x/simple_utility@v0.5.4/deps.ts";

Classes

This is the default logger. It will output color coded log messages to the console via console.log().

This handler will output to a file using an optional mode (default is a, e.g. append). The file will grow indefinitely. It uses a buffer for writing to file. Logs can be manually flushed with fileHandler.flush(). Log messages with a log level greater than error are immediately flushed. Logs are also flushed on process completion.

Functions

Takes an input date and a formatString to format to a string.