@buzuli/color
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -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:'))) | ||
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:'))) | ||
``` | ||
2822
5
41
54
2
+ Addednode-emoji@^1.8.1
+ Addedlodash@4.17.21(transitive)
+ Addednode-emoji@1.11.0(transitive)