Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

colorful

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colorful - npm Package Compare versions

Comparing version 1.3.0 to 2.0.0

.cache/files.json

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
});

11

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc