/style.js

object to CSS string

Primary LanguageJavaScript

style.js

object to CSS string

console.log('%cHello World', style({ backgroundColor: 'red', color: 'white' }));

sample output:

background-color:red;color:white;