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

material-icons-subset

v0.5.3

Published

#### Creates a new font with a subset of icons from [Material Design Icons Webfont](https://materialdesignicons.com/)

Downloads

540

Readme

material-icons-subset

Creates a new font with a subset of icons from Material Design Icons Webfont

This library uses webfont to create the subset and @mdi/svg as the source.

Install

npm i material-icons-subset

How to use

You can pass a list of icon names to be included in the font as arguments in the command line:

material-icons-subset camera menu account-outline email archive

Or, you can pass the path for a config.json file:

material-icons-subset font-config.json

The config.json file must have an array called icons with the name of the icons to be include in the font:

{
   "icons": [
      "camera",
      "menu",
      "account-outline",
      "tune",
      "bookmark-outline",
      "pause",
      "arrow-left",
      "archive",
      "email"]
}

Configuration

You can also use the config.json to configure:

{
  "formats": ["ttf"], //svg, ttf, woff, woff2
  "fontName": "Material Design Icons",
  "fontFile": "materialdesignicons",
  "dest": ".",
  "icons": [...]

These are the default values.

The following config.json are accepted.

{"icons": [...], ...}}
{"material-icons-subset": {"icons": [...], ...}}
{"extra": {"icons": [...], ...}}
{"extra": {"material-icons-subset": {"icons": [...], ...}}}

In this way, package.json or app.json can be used to configuration.

Result

By default, the library will create two files: materialdesignicons-subset.ttf and materialdesignicons-subset.json with the GlyphMap.

The GlyphMap file can be used with libraries like react-native-vector-icons with the alias configuration in the bundler for the font and for the GlyphMap. In this library this font is called MaterialComunityIcons.