FlamesX-128 / NextLog.ts

This library adds different console logs with status and color in Deno.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NextLog.ts

This library adds different console logs with status and color.

ChangeLog (0.2.0)

The default export value was changed, now an export const.

Before

import log from "https://deno.land/x/nextlog@v0.1.0";

Now

import { log } from "https://deno.land/x/nextlog@v0.2.0";

ChangeLog (0.1.0)

Functions:

error(message: any, ...options: any[]): void
info(message: any, ...options: any[]): void
ok(message: any, ...options: any[]): void
print(message: any, ...options: any[]): void
warn(message: any, ...options: any[]): void

Examples

import { log } from "./mod.ts";

(function main(): void {
  // Output: [<Date>] [<Time>] [<Status>] <Message>

  log.error("New Error!");

  log.info("New Info!");

  log.ok("New Ok!");

  log.print("New Print!");

  log.warn("New Warn");
})();

Output:

image

Created at 2021 ~ FlamesX-128

About

This library adds different console logs with status and color in Deno.

License:MIT License


Languages

Language:TypeScript 100.0%