1. xa
Simple console logger, that works in Node.js, Electron and the Browser ❤
xa
Package: xa
Created by: xxczaki
Last modified: Wed, 29 Jun 2022 04:45:06 GMT
Version: 2.4.0
License: MIT
Downloads: 174
Repository: https://github.com/xxczaki/xa

Install

npm install xa
yarn add xa

xa

Simple console logger, that works in Node.js, Electron and the Browser :heart:

Build Status XO Code Style Unicorn

Screenshot


Highlights

  • Simple API
  • Works in Node.js, Electron and the Browser
  • Customizable
  • Written in TypeScript

Install

npm install xa

Usage

 const xa = require('xa');

xa.success('Build finished!');
xa.custom('TITLE', 'Nice description', {titleColor: 'yellow', backgroundColor: '#212121'});

API

xa

Main method

success(text)

text

Type: string

A text you want to display

info(text)

text

Type: string

A text you want to display

warning(text)

text

Type: string

A text you want to display

error(text)

text

Type: string

A text you want to display

custom(title, text, {titleColor, backgroundColor})

title

Type: string

Title of the log. When in Electron, the title will be either MAIN or RENDERER.

text

Type: string

A text you want to display

titleColor

Type: string
Default: white

Color of the title. It will be converted to HEX.

backgroundColor

Type: string
Default: black

Color of title's background. It will be converted to HEX.

Thanks:

License

MIT © Antoni Kepinski

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin