Skip to content

Instantly share code, notes, and snippets.

@jaguilar87
Created September 4, 2019 14:40
Show Gist options
  • Save jaguilar87/2e6dfe76a09bfe71f033e6f588079638 to your computer and use it in GitHub Desktop.
Save jaguilar87/2e6dfe76a09bfe71f033e6f588079638 to your computer and use it in GitHub Desktop.
const symbols = {
info: ['ℹ', 'i'],
success: ['✔', '√'],
warning: ['!', '!'],
error: ['✖', 'x'],
bullet: ['⁎', '*'],
build: ['🛠', '* '],
in: ['📥', '>> '],
out: ['📥', '<< '],
redirect: ['↩', '><'],
megaphone: ['📣', '> '],
guitar: ['🎸', '> '],
greenLight: ['੦', 'o'],
yellowLight: ['੦', 'o'],
redLight: ['੦', 'o'],
child: ['└', '└']
};
for (const symbol of Object.keys(symbols)) {
const minLength = 20;
const arr = symbols[symbol];
const name = symbol + ' '.repeat(minLength - symbol.length);
console.log(name, '\t', arr[0], '\t', arr[1]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment