Gathering detailed insights and metrics for fa-svelte
Gathering detailed insights and metrics for fa-svelte
Gathering detailed insights and metrics for fa-svelte
Gathering detailed insights and metrics for fa-svelte
npm install fa-svelte
Typescript
Module System
Node Version
NPM Version
73.3
Supply Chain
92.7
Quality
75.6
Maintenance
100
Vulnerability
100
License
JavaScript (94.66%)
HTML (5.34%)
Total Downloads
145,722
Last Day
16
Last Week
274
Last Month
1,032
Last Year
11,287
MIT License
70 Stars
23 Commits
3 Forks
1 Watchers
32 Branches
1 Contributors
Updated on Jul 08, 2025
Minified
Minified + Gzipped
Latest Version
3.1.0
Package Id
fa-svelte@3.1.0
Unpacked Size
23.96 kB
Size
6.17 kB
File Count
7
NPM Version
6.9.0
Node Version
10.16.1
Cumulative downloads
Total Downloads
4
(For svelte v2, use fa-svelte v1.x.x)
A simple minimalistic lightweight svelte component for Font Awesome SVG icons.
This library is currently not intended to be fully featured, it is the option when size and speed is of importance.
Install as a development dependency
npm install -D fa-svelte
Using font awesome solid Icons, first install them using npm
npm install @fortawesome/free-solid-svg-icons
<Icon icon={icon}>
</Icon>
<script>
import Icon from 'fa-svelte'
import { faCircle } from '@fortawesome/free-solid-svg-icons/faCircle'
let icon = faCircle;
</script>
<div>
<Icon class="myClass1 myClass2" icon={faCircle}>
</Icon>
</div>
<script>
import Icon from 'fa-svelte'
import { faCircle } from '@fortawesome/free-solid-svg-icons/faCircle'
let icon = faCircle;
</script>
<style>
div :global(.myClass1) {
color: red;
}
div :global(.myClass2) {
font-size: 14px;
}
</style>
If you're using webpack with svelte-loader,
make sure that you add "svelte"
to
resolve.mainFields
in
your webpack config. This ensures that webpack imports the uncompiled component (src/Icon.svelte
)
rather than the compiled version (index.js
) — this is more efficient and will also resolve component
crash in runtime.
For a working web pack example, look at examples/webpack
This component is based on the template provided by sveltejs
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/17 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
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
Reason
101 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
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 MoreLast Day
-15.8%
16
Compared to previous day
Last Week
-9.9%
274
Compared to previous week
Last Month
31.3%
1,032
Compared to previous month
Last Year
-7.2%
11,287
Compared to previous year