node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey »

fonsole

Fonsole
npm travis

Fonsole

Tiny ~250B browser console formatter.

Usage

Fonsole exports a single object, which has a single method log. fonsole.log replaces your native browser's console.log statement with it's own formatted log statement, which takes in the style to be used as its second argument.

import fonsole from 'fonsole';
 
fonsole.log('Hi There!', 'color: green; font-size: 1.5rem');

License

MIT