consdev
v1.3.0
Published
Consdev to customize console terminal background text colors with identifiers.
Downloads
8
Maintainers
Readme
Consdev
npm install consdev
Usage
NodeJS
const Consdev = new require('consdev');
const _consdev = new Consdev();
const Consdev = new _consdev;
Consdev.success('Hello Worlds');
Consdev.error('Hello Worlds');
Consdev.info('Hello Worlds');
Consdev.warning('Hello Worlds');
Consdev.suggest('Hello Worlds');
output
Consdev.write('<comment>Hello Worlds</comment>');
Consdev.write('<success>Hello Worlds</success>');
Consdev.write('<warning>Hello Worlds</warning>');
Consdev.write('<info>Hello Worlds</info>');
Consdev.write('<error>Hello Worlds</error>');
output
Consdev.setStyle('title', '0451a5', 'e3dcdc', 1, 'start', 'auto');
Consdev.write('<title>Hello Worlds</title>');
output
Consdev.write('<bg=#27403c; fg=#ffffff; width=auto; padding=1; align=center;>Hello Worlds</>');