1.1.1 • Published 3 years ago

@letea/log v1.1.1

Weekly downloads
1
License
ISC
Repository
github
Last release
3 years ago

Log

npm version

A console with label for Browser.

Live Demo

Install

npm install @letea/log

Usage

import Log from "@letea/log";

const log = new Log("Log 1");
log.print("This is a print message");

// Or this way
/* 
const log = new Log({
  label: "Log 1"
});
*/

const log2 = new Log({
  label: "Log 2",
  labelBackgroundColor: "#c00"
});
log2.warn("This is a warn message.");

const log3 = new Log({
  label: "Log 3",
  labelBackgroundColor: "#0a0"
});
log3.error("This is a error message.");

Options

{
  label: string,
  labelBackgroundColor: string, // color format
  messageColor: string          // color format
}

Result

Light Mode

Dark Mode

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago