1 | exports = module.exports = require('./lib/ansi');
|
2 |
|
3 | exports.paint = function(text) {
|
4 | return new exports.Color(text);
|
5 | };
|
6 |
|
7 | exports.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 |
|
17 | Object.defineProperty(exports, 'isSupported', {
|
18 | get: exports.isColorSupported
|
19 | });
|