npm.io
1.0.3 • Published 3 years ago

console-styling

Licence
ISC
Version
1.0.3
Deps
0
Size
8 kB
Vulns
0
Weekly
4

Console text styling for TS and JS

Statistics/Info:

Language:

Size:

TS and JS Console colors

Lightweight package for styling console.log() in the terminal

Features

Font colors
Background colors
Text styling
Presets

Please click the star (️) button above to support my work

How to setup:

1. Clone and Install Required Packages

Run the following command:

npm install console-styling

2. Import package

import { log } from console-style
3. Example usage
log('Hello World', {color: 'red', style: 'underline'});

const customStyle = {color: 'blue', style: 'bold'}
log('Hello World', customStyle);

Keywords