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

@buzuli/color

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@buzuli/color - npm Package Compare versions

Comparing version 1.1.2 to 1.2.0

20

example.js

@@ -9,2 +9,4 @@

const black = hex('000')
console.log(red('rojo'))

@@ -18,5 +20,16 @@ console.log(orange('naraja'))

console.log(key('orange')('My favorite color'))
console.log(hex('abc')('Surprise me.'))
console.log(red.bg(black('rojo')))
console.log(orange.bg(black('naraja')))
console.log(yellow.bg(black('amarillo')))
console.log(green.bg(black('verde')))
console.log(blue.bg(black('azul')))
console.log(purple.bg(black('púrpura')))
console.log(gray.bg(black('gris')))
console.log(key('orange').bold('My favorite color'))
console.log(hex('abc').bold('Surprise me.'))
console.log(key('orange').bg(black.bold('My favorite color')))
console.log(hex('abc').bg(black.bold('Surprise me.')))
console.log(green(emoji.inject(':umbrella: spring :tulip:')))

@@ -27,1 +40,4 @@ console.log(yellow(emoji.inject(':palm_tree: summer :sunny:')))

console.log(emoji.key('x'))
console.log(emoji.key('white_check_mark'))
const chalk = require('chalk')
const emoji = require('./emoji')
const key = name => chalk.keyword(name)
const hex = code => chalk.hex(code)
function hex (code) {
const color = chalk.hex(code)
color.bg = chalk.bgHex(code)
return color
}
function key (name) {
const color = chalk.keyword(name)
color.bg = chalk.bgKeyword(name)
return color
}
module.exports = {

@@ -8,0 +17,0 @@ red: hex('d43'),

2

package.json
{
"name": "@buzuli/color",
"version": "1.1.2",
"version": "1.2.0",
"description": "Preferred colors for @buzuli's projects",

@@ -5,0 +5,0 @@ "main": "lib/color.js",

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