Comparing version 1.3.0 to 2.0.0
21
index.js
@@ -1,1 +0,20 @@ | ||
module.exports = require('./lib/color'); | ||
exports = module.exports = require('./lib/ansi'); | ||
exports.paint = function(text) { | ||
return new exports.Color(text); | ||
}; | ||
exports.colorful = function() { | ||
// don't overwrite | ||
if (String.prototype.to) return; | ||
Object.defineProperty(String.prototype, 'to', { | ||
get: function() { | ||
return new exports.Color(this.valueOf()); | ||
} | ||
}); | ||
}; | ||
var terminal = require('./lib/terminal'); | ||
Object.defineProperty(exports, 'isSupported', { | ||
get: terminal.isColorSupported | ||
}); |
{ | ||
"name": "colorful", | ||
"version": "1.3.0", | ||
"version": "2.0.0", | ||
"description": "colorful if a terminal tool for colors", | ||
"keywords": [ | ||
"color", | ||
"ansi", | ||
"256color", | ||
"console", | ||
@@ -19,9 +21,4 @@ "terminal" | ||
"devDependencies": { | ||
"jshint": "*", | ||
"mocha": "*", | ||
"should": "*" | ||
}, | ||
"scripts": { | ||
"test": "make test" | ||
"jshint": "*" | ||
} | ||
} |
@@ -11,2 +11,4 @@ # Colorful | ||
![screen shot](./screen-shot.png) | ||
## Programmer | ||
@@ -17,3 +19,3 @@ | ||
```javascript | ||
var color = require('colorful').color | ||
var color = require('colorful') | ||
color.red('hello') | ||
@@ -51,2 +53,17 @@ color.underline('hello') | ||
## Artist | ||
As an artist, you need more colors. | ||
```javascript | ||
var Color = require('colorful').Color; | ||
var s = new Color('colorful'); | ||
s.fgcolor = 13; | ||
s.bgcolor = 61; | ||
``` | ||
Support ANSI 256 colors. [0 - 255] | ||
## Detective | ||
@@ -99,4 +116,8 @@ | ||
- `1.3.0` | ||
## `2.0.0` | ||
Redesign. Support for ANSI 256 colors. | ||
## `1.3.0` | ||
- removed logging |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1
13
163
120
8265
3