Gathering detailed insights and metrics for hexo-filter-github-emojis-v2
Gathering detailed insights and metrics for hexo-filter-github-emojis-v2
Gathering detailed insights and metrics for hexo-filter-github-emojis-v2
Gathering detailed insights and metrics for hexo-filter-github-emojis-v2
npm install hexo-filter-github-emojis-v2
Typescript
Module System
Min. Node Version
Node Version
NPM Version
71.9
Supply Chain
95.4
Quality
72.4
Maintenance
100
Vulnerability
98.9
License
JavaScript (93.81%)
Shell (6.19%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
81 Stars
62 Commits
8 Forks
1 Watchers
4 Branches
5 Contributors
Updated on Jul 09, 2025
Latest Version
3.0.6
Package Id
hexo-filter-github-emojis-v2@3.0.6
Unpacked Size
303.74 kB
Size
31.93 kB
File Count
7
NPM Version
6.14.13
Node Version
14.17.3
Published on
Jun 02, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
A Hexo plugin that adds emoji support, using Github Emojis API.
Check out the Emoji Cheat Sheet for all the emojis it supports.
1$ npm install hexo-filter-github-emojis --save
You can configure this plugin in _config.yml
. Default options:
1githubEmojis: 2 enable: true 3 className: github-emoji 4 inject: true 5 styles: 6 customEmojis:
enable boolean=true
- Enable ::
emoji parsing. If off the tag and helper still work.
className string="github-emoji"
- Emoji class name.
For example :sparkles: :sparkles:
the filter will generate something like this:
1<span class="github-emoji"><span>✨</span><img src="https://assets-cdn.github.com/images/icons/emoji/unicode/2728.png?v8"></span>
inject boolean=true
- Inject emoji styles and fallback script.
If true
, the filter will inject a <style>
to the html.
If false
, the filter will not inject any style. If you can modify source style files you may turn this off and add them yourself.
Below are the injected styles. The class name changes according to option.
1.github-emoji { 2 position: relative; 3 display: inline-block; 4 width: 1.2em; 5 min-height: 1.2em; 6 overflow: hidden; 7 vertical-align: top; 8 color: transparent; 9} 10 11.github-emoji > span { 12 position: relative; 13 z-index: 10; 14} 15 16.github-emoji img, 17.github-emoji .fancybox { 18 margin: 0 !important; 19 padding: 0 !important; 20 border: none !important; 21 outline: none !important; 22 text-decoration: none !important; 23 user-select: none !important; 24 cursor: auto !important; 25} 26 27.github-emoji img { 28 height: 1.2em !important; 29 width: 1.2em !important; 30 position: absolute !important; 31 left: 50% !important; 32 top: 50% !important; 33 transform: translate(-50%, -50%) !important; 34 user-select: none !important; 35 cursor: auto !important; 36} 37 38.github-emoji-fallback { 39 color: inherit; 40} 41 42.github-emoji-fallback img { 43 opacity: 0 !important; 44}
styles object={}
- inline styles. For example:
1githubEmojis: 2 styles: 3 font-size: 2em 4 font-weight: bold
outputs:
1<span class="github-emoji" style="font-size:2em;font-weight:bold" ...>
customEmojis object={}
- You can specify your own list. An object or JSON string is valid. The filter will first check the customEmojis
then fallback to the Github Emojis list.
For example:
1githubEmojis: 2 customEmojis: 3 arrow_left: https://path/to/arrow_left.png 4 arrow_right: https://path/to/arrow_right.png
If you need to add code points that are not in the Github list, you can do this:
1githubEmojis: 2 customEmojis: 3 man_juggling: 4 src: https://path/to/man_juggling.png 5 codepoints: ["1f939", "2642"] 6 arrow_right: https://path/to/arrow_right.png
If you do not like the ::
-style keywords, you can always use tags:
1{% github_emoji sparkles %}
Add no-emoji: true
to front-matter to stop replacing ::
:
1--- 2title: Hello World 3no-emoji: true 4--- 5 6:tada: as it is. 7 8{% github_emoji tada %} still works.
You can also render a GitHub emoji from a template using the github_emoji
helper:
1<h1><%- github_emoji('octocat') %></h1>
If you are using theme that enables fancybox(e.g. the default landscape theme) it is recommended to skip the github emoji imgs.
Edit themes/landscape/source/script.js
1 // Caption 2 $('.article-entry').each(function(i){ 3 $(this).find('img').each(function(){ 4 if ($(this).parent().hasClass('fancybox')) return; 5+ if ($(this).parent().hasClass('github-emoji')) return; 6 7 var alt = this.alt; 8 9 if (alt) $(this).after('<span class="caption">' + alt + '</span>'); 10 11 $(this).wrap('<a href="' + this.src + '" title="' + alt + '" class="fancybox"></a>'); 12 }); 13 14 $(this).find('.fancybox').each(function(){ 15 $(this).attr('rel', 'article' + i); 16 }); 17 });
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
4 existing vulnerabilities detected
Details
Reason
Found 2/24 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More