0.1.2 • Published 5 years ago
emojiless v0.1.2
emojiless
:rotating_light: WARNING :rotating_light:
Emojiless was renamed as emojizer.
emojilesswon't be updated so useemojizerinstead :heavy_exclamation_mark:Less is more with emojies :wink:
CLI
Just place it between your program, and your eventual pager.
echo "Something with emojies :upside_down_face:" | emojiless
# Something with emojies 🙃
echo "Insert before your pager :pager:" | emojiless | lessUsing zsh, you can for instance define a global alias that combine emojiless and less or the pager you use.
alias -g eless="emojiless|less"Note that used with git log you might have to force color output, with --color flag for instance
API
Provided API is so far limited, but it expose:
- a function to replace emoji code with corresponding emoji caracter:
replaceEmojiCodes - a function to create a
Transformstream:getEmojilessStream
const {replaceEmojiCodes} = require('emojiless');
console.log(replaceEmojiCodes('some text with :symbols:'));
// for getEmojilessStream, see the source or the tests 📃