colored-print
v1.0.0
Published
Copied from Brian Vaughn's https://gist.github.com/bvaughn/810d50d6ade25b784728873daabb905e (see also https://twitter.com/brian_d_vaughn/status/1025193946757050368?s=09) and modified to support passing args to console.log and Flow typing.
Downloads
2
Readme
colored-print
Copied from Brian Vaughn's https://gist.github.com/bvaughn/810d50d6ade25b784728873daabb905e (see also https://twitter.com/brian_d_vaughn/status/1025193946757050368?s=09) and modified to support passing args to console.log and Flow typing.
Example usage
import print from 'colored-print';
print.blue("prefix", "Lorem ipsum dolor sit amet");
print.brown("prefix", "Lorem ipsum dolor sit amet");
print.gray("prefix", "Lorem ipsum dolor sit amet");
print.green("prefix", "Lorem ipsum dolor sit amet");
print.red("prefix", "Lorem ipsum dolor sit amet");
print.orange("prefix", "Lorem ipsum dolor sit amet");
print.purple("prefix", "Lorem ipsum dolor sit amet");
print.yellow("prefix", "Lorem ipsum dolor sit amet", {
some: "data",
can: "go",
here: "ok",
});