0.2.0 • Published 5 years ago
lovely-console v0.2.0
⚙ Installation
npm
$ npm install --save lovely-consoleyarn
$ 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
backgroundand its longhand equivalents.borderand its longhand equivalentsborder-radiusbox-decoration-breakbox-shadowclearandfloatcolorcursordisplayfontand its longhand equivalentsline-heightmarginoutlineand its longhand equivalentspaddingtext-*properties such astext-transformwhite-spaceword-spacingandword-breakwriting-mode
🍰 Contributing
Keep it simple. Keep it minimal.
📜 License
This project is licensed under the MIT License