npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

svelte-nerdfonts

v1.0.3

Published

Use all nerdfont-icons in your Svelte project

Downloads

32

Readme

svelte-nerdfonts

Nerdfont SVG-Icons for Svelte.js

Install

Run:

npm install --save svelte-nerdfonts

Usage


<script>
  import Icon from 'svelte-nerdfonts';
  import { vim } from 'svelte-nerdfonts/icons/dev';
  import { heart } from 'svelte-nerdfonts/icons/mdi';
</script>

<Icon data={vim} />
<Icon data={heart} />

(See cheatsheet to find the icons you are looking for)

Icons

Icons can be imported directly from an Iconset or from a combined module prefixed with the name of the iconset.

The iconnames are camelcased versions of the nerdfonts cssclassnames.

// nerd-fonts classname: .nf-linux-archlinux
// all examples will import the same icon

import { default as linuxArchlinux } from 'svelte-nerdfonts/icons/linux/archlinux';
import { archlinux } from 'svelte-nerdfonts/icons/linux';
import { linuxArchlinux } from 'svelte-nerdfonts/icons';

Note: The compiletime depends on the size of the imported iconset. Example 1 will be fastest as it only has to import on iconfile.

Supported Iconsets

  • svelte-nerdfonts/icons all icons (prefixed)
  • svelte-nerdfonts/icons/custom Custom
  • svelte-nerdfonts/icons/dev Devicons
  • svelte-nerdfonts/icons/fa Font Awesome
  • svelte-nerdfonts/icons/fae Font Awesome Extension
  • svelte-nerdfonts/icons/iec IEC Power Symbols
  • svelte-nerdfonts/icons/indentation
  • svelte-nerdfonts/icons/linux Font Linux
  • svelte-nerdfonts/icons/mdi Material Design
  • svelte-nerdfonts/icons/oct Octicons
  • svelte-nerdfonts/icons/pl Powerline Symbols
  • svelte-nerdfonts/icons/ple PowerLine Extra Symbols
  • svelte-nerdfonts/icons/pom Pomicons
  • svelte-nerdfonts/icons/seti Seti UI
  • svelte-nerdfonts/icons/weather Weather Icons

fzf.vim completion

If you are using vim/neovim with fzf.vim you can install the svelte_nerdfonts.vim plugin to find, import and add icons more efficently.

Install with vim-plug

Plug 'icalvin102/svelte-nerdfonts', { 'rtp': 'vim' }

Or install the vim directory manually.

The plugin will give you the :SNFAddImport and :SNFAddIcon commands which are mapped to <leader>si and <leader>sI by default.

  • :SNFAddImport Find icons and add ESM import statements.
  • :SNFAddIcon Search through imported icons and add Icon component

Multiple selection is possible with Tab (select down) and Shift+Tab (select up). Press Enter to confirm and insert the selected icons into your buffer.

Note: Install a nerd-font for icon-previews in the fzf output

Build

Setup

$ git clone https://github.com/icalvin102/svelte-nerdfonts.git
$ cd svelte-nerdfonts
$ npm run setup

svelte-nerdfonts uses icalvin102/nerdconvert to generate the icons. This needs python and fontforge to be installed on your machine.

Generate

If the dependencies are installed you can simply run:

npm run generate

or

python nerdconvert.py -o es icons/ --fields iconname paths viewbox

(see nerdconvert#usage for more details)