UNPKG

430 BJavaScriptView Raw
1exports = module.exports = require('./lib/ansi');
2
3exports.paint = function(text) {
4 return new exports.Color(text);
5};
6
7exports.colorful = function() {
8 // don't overwrite
9 if (String.prototype.to) return;
10 Object.defineProperty(String.prototype, 'to', {
11 get: function() {
12 return new exports.Color(this.valueOf());
13 }
14 });
15};
16
17Object.defineProperty(exports, 'isSupported', {
18 get: exports.isColorSupported
19});