Crayon is a wrapper around the console
object that supports string formatting and colors.
$ npm install crayon
var crayon = require('crayon');
If set to true
, all methods will get printed to the console. If false
, only crayon.success
and crayon.error
will. Defaults to false
.
Prints a formatted string to the console. Not colored.
Prints a blue formatted string to the console.
Prints a yellow formatted string to the console.
Prints a green formatted string to the console.
Prints a red formatted string to the console.
$ npm install
$ npm test
Found a bug? Create an issue on GitHub.
https://github.com/jharding/crayon/issues
For transparency and insight into the release cycle, releases will be numbered with the follow format:
<major>.<minor>.<patch>
And constructed with the following guidelines:
- Breaking backwards compatibility bumps the major
- New additions without breaking backwards compatibility bumps the minor
- Bug fixes and misc changes bump the patch
For more information on semantic versioning, please visit http://semver.org/.
Copyright (c) 2012 Jake Harding
Licensed under the MIT License.