Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
svelte-bootstrap-icons
Advanced tools
Bootstrap SVG icons as Svelte components with zero dependencies.
This package uses svelvg to convert source SVG files into Svelte components.
Try it in the Svelte REPL.
# Yarn
yarn add -D svelte-bootstrap-icons
# NPM
npm i -D svelte-bootstrap-icons
# pnpm
pnpm i -D svelte-bootstrap-icons
See ICON_INDEX.md for a list of supported icons.
<script>
import { Alarm, Bank, CloudMoon } from "svelte-bootstrap-icons";
</script>
<Alarm />
<Bank />
<CloudMoon />
Import the icon directly for faster compiling during development.
<script>
import Alarm from "svelte-bootstrap-icons/lib/Alarm.svelte";
</script>
$$restProps
are forwarded to the svg
element.
Use the width
and height
attributes to customize the icon size. The default is 16px.
<Alarm width={24} height={24} />
Use the fill
attribute to specify a custom color.
<Alarm fill="red" />
See the contributing guidelines.
3.1.1 - 2023-12-31
exports
field to package.json
FAQs
Bootstrap SVG icons as Svelte components
The npm package svelte-bootstrap-icons receives a total of 6,226 weekly downloads. As such, svelte-bootstrap-icons popularity was classified as popular.
We found that svelte-bootstrap-icons demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.