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

colors-mini

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colors-mini - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

13

index.js
'use strict';
var codes = {

@@ -14,3 +13,2 @@ 'white': 37,

};
function Render(code) {

@@ -22,8 +20,5 @@ return function(s) {

};
var colors = {}
var keys = Object.keys(codes)
for (var i = keys.length - 1; i >= 0; i--) {
var key = keys[i];
colors[key] = new Render(codes[key])
};
module.exports = colors;
var colors = module.exports = {};
Object.keys(codes).forEach(function(i){
colors[i] = new Render(codes[i])
})
{
"name": "colors-mini",
"version": "1.0.1",
"version": "1.0.2",
"description": "A mini colors tools",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -13,2 +13,4 @@ colors

```javascript
var colors = require('colors-mini')
// api
console.log(colors.white(37))

@@ -15,0 +17,0 @@ console.log(colors.grey(90))

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