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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@zuckersalzundpfeffer/sugar-vg

v0.1.11

Published

## Installation

Readme

sugar-vg

Installation

yarn add -D @zuckersalzundpfeffer/sugar-vg [email protected]

to get the inline svg workin, add a webpack loader to the project

module.exports = {
    chainWebpack: (config) => {
      const svgRule = config.module.rule("svg");
  
      svgRule.uses.clear();
  
      svgRule
        .use("babel-loader")
        .loader("babel-loader")
        .end()
        .use("vue-svg-loader")
        .loader("vue-svg-loader");
    },
  };

for nuxt try the follwing:

module.exports = {
  build: {
    extend: (config) => {
      const svgRule = config.module.rules.find(rule => rule.test.test('.svg'));

      svgRule.test = /\.(png|jpe?g|gif|webp)$/;

      config.module.rules.push({
        test: /\.svg$/,
        use: [
          'vue-loader',
          'vue-svg-loader',
        ],
      });
    },
  },
};

Thereafter you should be able to use the iconfont.

Customize the icons

define a icons config at ./src/config/icons.js with all the icons you want to add to the project. You can place the config somewhere else but than the dynamic documentation will not work.

import category from "./icons/category.svg";
import arrowRight from "./icons/arrow-right.svg";
import date from "./icons/date.svg";
import description from "./icons/description.svg";
import goal from "./icons/goal.svg";
import ideas from "./icons/ideas.svg";
import maximize from "./icons/maximize.svg";
import place from "./icons/place.svg";
import resource from "./icons/resource.svg";
import search from "./icons/search.svg";
import tag from "./icons/tag.svg";
import time from "./icons/time.svg";
export default {
  "klg-category": category,
  "klg-arrowRight": arrowRight,
  "klg-date": date,
  "klg-description": description,
  "klg-goal": goal,
  "klg-ideas": ideas,
  "klg-maximize": maximize,
  "klg-place": place,
  "klg-resource": resource,
  "klg-search": search,
  "klg-tag": tag,
  "klg-time": time,
};

than implement the plugin with:

import sugarVGPlugin from "./plugin"
import icons from "./config/icons"
Vue.use(sugarVGPlugin,{icons:icons})

at least add the docu server to your package.json

{
    scripts: {
        ...
        "icon:docs": "cd ./node_modules/@zuckersalzundpfeffer/sugar-vg && yarn && NODE_ENV=production yarn serve"
        ...
    }
}

Now you can use the svg icons within your project

<sugar-vg icon="icon-name" size="80" color="#fff" />