New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.0.0 to 1.1.0

lib/emoji.js

10

example.js

@@ -5,3 +5,4 @@

orange, green, purple,
gray, hex, key
gray, hex, key,
emoji
} = require('./lib/color')

@@ -16,3 +17,10 @@

console.log(gray('gris'))
console.log(key('orange')('My favorite color'))
console.log(hex('abc')('Surprise me.'))
console.log(green(emoji.inject(':umbrella: spring :tulip:')))
console.log(yellow(emoji.inject(':palm_tree: summer :sunny:')))
console.log(orange(emoji.inject(':jack_o_lantern: fall :fallen_leaf:')))
console.log(gray(emoji.inject(':snowman: winter :snowflake:')))

4

lib/color.js
const chalk = require('chalk')
const emoji = require('./emoji')

@@ -15,4 +16,5 @@ const key = name => chalk.keyword(name)

key,
hex
hex,
emoji
}
{
"name": "@buzuli/color",
"version": "1.0.0",
"version": "1.1.0",
"description": "Preferred colors for @buzuli's projects",

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

"dependencies": {
"chalk": "^2.3.0"
"chalk": "^2.3.0",
"node-emoji": "^1.8.1"
}
}

@@ -41,1 +41,14 @@ # color

One more thing: Emoji 🐿
```javascript
const {
green, yellow, orange, gray, emoji
} = require('@buzuli/color')
console.log(green(emoji.inject(':umbrella: spring :tulip:')))
console.log(yellow(emoji.inject(':palm_tree: summer :sunny:')))
console.log(orange(emoji.inject(':jack_o_lantern: fall :fallen_leaf:')))
console.log(gray(emoji.inject(':snowman: winter :snowflake:')))
```
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