0.1.2 • Published 3 years ago

emojiless v0.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

emojiless

:rotating_light: WARNING :rotating_light:

Emojiless was renamed as emojizer. emojiless won't be updated so use emojizer instead :heavy_exclamation_mark:

Less is more with emojies :wink:

Npm version Build Status codecov License: MIT

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 | less

Using 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 Transform stream: getEmojilessStream
const {replaceEmojiCodes} = require('emojiless');

console.log(replaceEmojiCodes('some text with :symbols:'));

// for getEmojilessStream, see the source or the tests 📃