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
npm install @vidhill/fortawesome-solid-11ty-shortcode
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
41 Commits
1 Forks
1 Watching
1 Branches
1 Contributors
Updated on 11 Jun 2024
JavaScript (98.33%)
Shell (1.67%)
Cumulative downloads
Total Downloads
Last day
-78.3%
5
Compared to previous day
Last week
-75.7%
33
Compared to previous week
Last month
46%
327
Compared to previous month
Last year
-19.1%
2,204
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
16 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
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