2.4.0 • Published 4 years ago

xa v2.4.0

Weekly downloads
25
License
MIT
Repository
github
Last release
4 years ago

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

2.4.0

4 years ago

2.3.0

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.0-inactive

7 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.0

8 years ago