Simple console logger, that works in Node.js, Electron and the Browser ❤️
- Simple API
- Works in Node.js, Electron and the Browser
- Customizable
- Written in TypeScript
npm install xa
const xa = require('xa');
xa.success('Build finished!');
xa.custom('TITLE', 'Nice description', {titleColor: 'yellow', backgroundColor: '#212121'});
Main method
text
Type: string
A text you want to display
text
Type: string
A text you want to display
text
Type: string
A text you want to display
text
Type: string
A text you want to display
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.
- Jamen Marzonie for providing package name!
MIT © Antoni Kepinski