Gathering detailed insights and metrics for @vidhill/fortawesome-solid-11ty-shortcode
Gathering detailed insights and metrics for @vidhill/fortawesome-solid-11ty-shortcode
Gathering detailed insights and metrics for @vidhill/fortawesome-solid-11ty-shortcode
Gathering detailed insights and metrics for @vidhill/fortawesome-solid-11ty-shortcode
Eleventy shortcode, allows @fortawesome/free-solid-svg-icons svgs to be embedded in eleventy templates
npm install @vidhill/fortawesome-solid-11ty-shortcode
Typescript
Module System
Node Version
NPM Version
71.9
Supply Chain
98.3
Quality
75.3
Maintenance
100
Vulnerability
98.6
License
JavaScript (98.33%)
Shell (1.67%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
41 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Jun 11, 2024
Latest Version
1.0.1
Package Id
@vidhill/fortawesome-solid-11ty-shortcode@1.0.1
Unpacked Size
54.69 kB
Size
17.09 kB
File Count
18
NPM Version
7.12.1
Node Version
14.15.4
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
Eleventy/11ty shortcode.
Allows @fortawesome/free-solid-svg-icons to be embedded as inline svg into 11ty templates.
See solid icon names here: font-awesome-5-solid
1$ npm install @vidhill/fortawesome-solid-11ty-shortcode --save
Option A: Import as a plugin, shortcodes names are fixed, if you want to name the shortcodes yourself see Option B
1const { 2 fortawesomeSolidPlugin, 3} = require('@vidhill/fortawesome-solid-11ty-shortcode'); 4 5module.exports = function (eleventyConfig) { 6 eleventyConfig.addPlugin(fortawesomeSolidPlugin); 7 8 return { 9 // normal eleventy config 10 }; 11};
Option B: import the render function so that a custom shortcode name can be defined
1const { 2 fortawesomeSolidShortcode, 3} = require('@vidhill/fortawesome-solid-11ty-shortcode'); 4 5module.exports = function (eleventyConfig) { 6 eleventyConfig.addShortcode('fortawesomeSolid', fortawesomeSolidShortcode); 7 8 return { 9 // normal eleventy config 10 }; 11};
1{% fortawesomeSolid 'bell' %}
1<svg 2 aria-hidden="true" 3 focusable="false" 4 data-prefix="fas" 5 data-icon="bell" 6 class="svg-inline--fa fa-bell fa-w-14 " 7 role="img" 8 xmlns="http://www.w3.org/2000/svg" 9 viewBox="0 0 448 512" 10> 11 <path fill="currentColor" d="M165.9 397.4c0....4-2.3-4-3.3-5.6-2z"></path> 12</svg>
Specifying a css class to be added to the svg
element
1{% fortawesomeSolid 'bell', "social-icon" %}
1<svg 2 aria-hidden="true" 3 focusable="false" 4 data-prefix="fas" 5 data-icon="bell" 6 class="svg-inline--fa fa-bell fa-w-14 social-icon" 7 role="img" 8 xmlns="http://www.w3.org/2000/svg" 9 viewBox="0 0 448 512" 10> 11 <path fill="currentColor" d="M165.9 397.4c0....4-2.3-4-3.3-5.6-2z"></path> 12</svg>
Multiple css class to be added to they svg by passing a comma separated string:
1{% fortawesomeBrand 'github', "social-icon,unicorn-icon" %}
npm run build
npm run dev
npm run test
npm run test:watch
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/12 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
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
18 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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