cd-messenger
Node and Browser Messages
Use same API across browser or node and cd-messenger will handle the rest for you!
View on npm
npm
Install withnpm i -S cd-messenger
yarn
Install withyarn add cd-messenger
Add as script tag
Usage
const msg = ; // You can use titleCase or lower case for msg methods// assuming `name` variable has been set to value before calling below let name = 'Mike Erickson'; =========================================================================================msg;msg; // default color Whitemsg; // default color Cyanmsg; // default color Greenmsg; // default color Yellowmsg; // default color Redmsg; // default color Orangemsg; // default color whitemsg // uses console.table (browser) or nice cli table (node) =========================================================================================msgmsgline // displays a colored line (you can define line character, color, and width)msg; // displays a line with solid magenta (no char)msg; // displays a line with repeating '•' and greenmsg; // display with repeating (40) box, yellow =========================================================================================msg // customize default browser appearance option // try it out and see how it looks
License
Copyright © 2016-2017 Mike Erickson Released under the MIT license
Credits
cd-messenger written by Mike Erickson
E-Mail: codedungeon@gmail.com
Twitter: @codedungeon
Webiste: codedungeon.org