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


ansi-colors NPM version NPM monthly downloads NPM total downloads Linux Build Status Windows Build Status

Collection of ansi colors and styles.


Install with npm:

$ npm install --save ansi-colors

Why was this module created?

This module was created to make it easy to allow color configuration through options. This module inlines the code from these other ansi-* modules for faster load times. The lazy loading of the underlying modules modules has been moved to ansi-colors-lazy.


var colors = require('ansi-colors');


Related projects


Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.


Commits Contributor
5 doowb
3 jonschlinkert

Building docs

(This project's is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the readme template.)

To generate the readme, run the following command:

$ npm install -g verbose/verb#dev verb-generate-readme && verb

Running tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm install && npm test


Brian Woodward


Copyright © 2017, Brian Woodward. Released under the MIT License.

This file was generated by verb-generate-readme, v0.6.0, on December 06, 2017.