colored-print

1.0.0 • Public • Published

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",
});

Readme

Keywords

none

Package Sidebar

Install

npm i colored-print

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

8.51 kB

Total Files

7

Last publish

Collaborators

  • saltycrane