lovely-console
v0.2.0
Published
lovely console
Downloads
4
Maintainers
Readme
⚙ Installation
npm
$ npm install --save lovely-console
yarn
$ yarn add lovely-console
🏃 Quick Start
lovelyConsole(
[
{ msg: 'text' },
{ msg: 'text2', style: 'background: tomato; font-size: 20px;' },
],
);
const styledConsole = makeStyledConsole({
background: 'tomato',
'font-size': '20px',
});
styledConsole('text');
🍳 Recipes
Default arguments
function lovelyConsole(messages: Message[], key?: keyof Console); // default key is 'log'
console function
lovelyConsole([...],'log'); // console.log, default
lovelyConsole([...],'error'); // console.error
lovelyConsole([...],'debug'); // console.debug
...
support styles
background
and its longhand equivalents.border
and its longhand equivalentsborder-radius
box-decoration-break
box-shadow
clear
andfloat
color
cursor
display
font
and its longhand equivalentsline-height
margin
outline
and its longhand equivalentspadding
text-*
properties such astext-transform
white-space
word-spacing
andword-break
writing-mode
🍰 Contributing
Keep it simple. Keep it minimal.
📜 License
This project is licensed under the MIT License