emoji-extractor

Copy emoji fallback images based on use in source files

Usage no npm install needed!

<script type="module">
  import emojiExtractor from 'https://cdn.skypack.dev/emoji-extractor';
</script>

README

emoji-extractor

Ultra-basic tool to extract emojis used in source code and prepare .svg images to be used as a fallback.

Usage

npx emoji-extrator <code source> <svg target> <svg source>

For example:

npx emoji-extractor 'src/**/*.js' 'build/emojis' '../emojitwo/svg/*.svg'
# Scans all .js files in the given pattern for emojis and copies an .svg file to build/emojis from ../emojitwo/svg per each emoji found