devmoji icon indicating copy to clipboard operation
devmoji copied to clipboard

adding a unicode emoji

Open jamiehaywood opened this issue 4 years ago • 0 comments

awesome library!

wanted to change the emoji for test from 🚨 to 🧪 but the docs don't make it entirely clear on how to do that in devmoji.config.js.

This config:

module.exports = {
  types: ["lint"],
  devmoji: [{ code: "test", emoji: "🧪" }],
};

with this command:

echo "test: add middleware tests" | devmoji --format unicode 

yields:

test: :🧪: add middleware tests

Just wondering if there's a way to map normal unicode emojis in the config?

Edit: the GitHub alias is :test_tube: - I wonder whether this is just not added to the source?

jamiehaywood avatar Oct 30 '21 14:10 jamiehaywood