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 🙏

© 2024 – Pkg Stats / Ryan Hefner

svelte-game-icons

v1.0.3

Published

svelte-game-icons is a simple component wrapping the [game-icons](https://github.com/game-icons/icons) library for easy use in your Svelte projects.

Downloads

8

Readme

Svelte Game-Icons

svelte-game-icons is a simple component wrapping the game-icons library for easy use in your Svelte projects.

Import

Import only the icons you need where you need them by using the following syntax: import {IconName} from 'svelte-game-icons';

Icons naming convention

All icons start with an uppercase letter and those that have multiple words are combined with no space nor hyphen but each word starts with an uppercase letter, for example: The dark-squad icon (called Dark squad on Game Icons website) is named DarkSquad.

Finally, all icons starting with 3d have been renamed with ThreeD instead: 3d-glasses becomes ThreeDGlasses.

Usage

Possible props for icons are: | Prop | Values | Example | Notes |
|-------------|-------------------------|------------------------|---------------------------------------------------------------------------------| | bg | Any valid color string | #fff | This is the color of the square background of the icon | | fg | Any valid color string | rgba(212,32,124,0.5) | This is the color of the icon itself | | strokeColor | Any valid color string | hsl(121deg,33%,34%) | Color of the icon stroke | | strokeWidth | Any valid length string | 4px | See MDN |

Examples

<Boots bg='white' fg='rgb(32,134,55)'/>

<Xylophone bg='rgba(0,0,0,0.1)' fg='hsl(233deg,85%,20%)' strokeWidth='1rem' strokeColor='rgba(0,0,0,0.33)'/>

<WindTurbine bg='black' fg='black' strokeWidth='4px' strokeColor='white'/>