Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/oak_nest/example/deps.ts

Refer to nestjs to realize some common functions for Deno, support hono and oak
Latest
import * as oakNest from "https://deno.land/x/oak_nest@v3.0.1/example/deps.ts";

Enums

Standard HTTP status codes.

Variables

A record of all the status codes text.

Functions

Set background color to blue.

Set background color using 24bit rgb. color can be a number in range 0x000000 to 0xffffff or an Rgb.

Set background color using paletted 8bit colors. https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit

Set text color to blue.

Make the text bold.

Resolve a Promise after a given amount of milliseconds.

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

Set text color to green.

Checks if a given value is an array

Checks if a value is a boolean.

Checks if a given value is an enum

Checks if value is an integer.

Checks if the string is a valid hex-encoded representation of a MongoDB ObjectId. If given value is not a string, then it returns false.

Checks if a value is a number.

Checks if value is missing and if so, ignores all validators.

Checks if a given value is a real string.

Make the text italic.

Checks if the first number is less than or equal to the second.

Checks if the first number is greater than or equal to the second.

Set text color to red.

Set text color using 24bit rgb. color can be a number in range 0x000000 to 0xffffff or an Rgb.

Set text color using paletted 8bit colors. https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit

Validates given object and reject on error.

Set text color to yellow.