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

@niht/icons

v0.0.1

Published

Icons from packs like Font Awesome, Material, Octicons, Feather, Icomoon, and Boxicons available as Web Components

Downloads

3

Readme

Niht Icons

This is a port of styled-icons using webcomponents for haunted using the customized bundle @niht/haunted which includes the css preprocessor by sytlis and html template literals are bundled from lit-html.

WIP NOTES

  • [ ] Ensure treeshaking can occur
  • [ ] How to import specific icons or mix and match
  • [ ] Make Bundles Smaller
  • [ ] Finish gh-page

Installation

Use the package manager npm to install.

npm install @niht/icons --save

Importing

Niht Icons can be imported just like any other library when using a bundler of your choice:

import "@niht/icons/lib/fa-regular.js"

Web modules

Niht Icons can work directly in the browser without using any build tools. Simply import the icon bundle from the cdn of your choice:

import "https://unpkg.com/@niht/icons/lib/fa-regular.js"
import "https://unpkg.com/@niht/icons/lib/material.js"

or with a script tag in html:

<script type="module" src="https://unpkg.com/@niht/icons/lib/material.js"></script>

If you install the icons locally this build is located at node_modules/@niht/icons/*icon-pack*.js.

Usage

Each icon pack is bundle and each icon is prefixed with its icon pack name in kebab-case. eg.:

<material-account-circle></material-account-circle>
<fa-regular-moon></fa-regular-moon>
<fa-regular-sun></fa-regular-sun>

Contributing

This repo is being used to experiment with the libraries that are bundled with it. Its fate is very uncertain, I would recommend using and contributing to the libraries described above.

License

UNLICENSE

The Boxicons are licensed under the CC BY 4.0 License.

The Cryptocurrency icons are licensed under the CC0 1.0 Universal License.

The Evil Icons are licensed under the MIT License.

The Font Awesome icons are licensed under the CC BY 4.0 License.

The Feather icons are licensed under the MIT License.

The Icomoon icons are dual licensed under GPL / CC BY 4.0 License.

The Material Design icons are licensed under the Apache License Version 2.0.

The Octicons are licensed under the MIT License.

The Typicons are licensed under the CC BY SA 3.0 License.