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-downloader

v1.3.1

Published

Download current [material-design-icons](https://material.io/resources/icons/), because Google don't update there [Repository](https://github.com/google/material-design-icons).<br><br> See: https://github.com/google/material-design-icons/issues/786

Downloads

4,068

Readme

material-icons-downloader

Download current material-design-icons, because Google don't update there Repository. See: https://github.com/google/material-design-icons/issues/786

Install

> npm i --save-dev material-icons-downloader

Icon Download

Add the download script to your package.json, the paramater is the target folder.

{
  "name": "...",
  "version": "1.0.0",
  "description": "",
  ...
  "scripts": {
    "dl-icons": "material-icons-downloader --scss --force src/assets/fonts/material-iconfont",
    "postdl-icons": "cp -u src/assets/fonts/material-iconfont/mat-icon-font.scss src/scss/mat-icon-font.scss"
  },
  "keywords": [],
  ...
}

Options

-h/--help    show this help
-f/--force   force download and ignore the version
-q/--quiet   no output
-s/--scss    create a scss file instead of css file

Usage

Normal version

<mat-icon>file_copy</mat-icon>

Normal version with color

<mat-icon color="warn">file_copy</mat-icon>

Outline version

<mat-icon fontSet="material-icons-outlined">file_copy</mat-icon>

Two tone version

<mat-icon fontSet="material-icons-two-tone">file_copy</mat-icon>

Round version

<mat-icon fontSet="material-icons-round">file_copy</mat-icon>

Sharp version

<mat-icon fontSet="material-icons-sharp">file_copy</mat-icon>

Style

Add the Styles and replace ##PATH-TO-ICONS## with the Path defined as parameter in package.json. You can also use the generated mat-icon-font.css or mat-icon-font.scss file.


/**
 * fonts for material icons
 */

@font-face {
  font-family: "Material Icons";
  font-style: normal;
  font-weight: 400;
  src: url("##PATH-TO-ICONS##/material-regular.eot"); /* For IE6-8 */
  src: local("Material Icons"), local("MaterialIcons-Regular"),
    url("##PATH-TO-ICONS##/material-regular.woff2") format("woff2"),
    url("##PATH-TO-ICONS##/material-regular.woff") format("woff"),
    url("##PATH-TO-ICONS##/material-regular.ttf") format("truetype");
}

.material-icons {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  font-size: 24px; /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;

  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;

  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;

  /* Support for IE. */
  font-feature-settings: "liga";
}

@font-face {
  font-family: "Material Icons Outlined";
  font-style: normal;
  font-weight: 400;
  src: url("##PATH-TO-ICONS##/material-outline.eot"); /* For IE6-8 */
  src: local("Material Icons Outlined"),
    url("##PATH-TO-ICONS##/material-outline.woff2") format("woff2"),
    url("##PATH-TO-ICONS##/material-outline.woff") format("woff"),
    url("##PATH-TO-ICONS##/material-outline.otf") format("opentype");
}

@font-face {
  font-family: "Material Icons Round";
  font-style: normal;
  font-weight: 400;
  src: url("##PATH-TO-ICONS##/material-round.eot"); /* For IE6-8 */
  src: local("Material Icons Round"),
    url("##PATH-TO-ICONS##/material-round.woff2") format("woff2"),
    url("##PATH-TO-ICONS##/material-round.woff") format("woff"),
    url("##PATH-TO-ICONS##/material-round.otf") format("opentype");
}

@font-face {
  font-family: "Material Icons Sharp";
  font-style: normal;
  font-weight: 400;
  src: url("##PATH-TO-ICONS##/material-sharp.eot"); /* For IE6-8 */
  src: local("Material Icons Sharp"),
    url("##PATH-TO-ICONS##/material-sharp.woff2") format("woff2"),
    url("##PATH-TO-ICONS##/material-sharp.woff") format("woff"),
    url("##PATH-TO-ICONS##/material-sharp.otf") format("opentype");
}

@font-face {
  font-family: "Material Icons Two Tone";
  font-style: normal;
  font-weight: 400;
  src: url("##PATH-TO-ICONS##/material-twotone.eot"); /* For IE6-8 */
  src: local("Material Icons twotone"),
    url("##PATH-TO-ICONS##/material-twotone.woff2") format("woff2"),
    url("##PATH-TO-ICONS##/material-twotone.woff") format("woff"),
    url("##PATH-TO-ICONS##/material-twotone.otf") format("opentype");
}


.material-icons-outlined,
.material-icons.material-icons--outlined,
.material-icons-two-tone,
.material-icons.material-icons--two-tone,
.material-icons-round,
.material-icons.material-icons--round,
.material-icons-sharp,
.material-icons.material-icons--sharp {
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
}

.material-icons-outlined,
.material-icons.material-icons--outlined {
  font-family: "Material Icons Outlined";
}

.material-icons-two-tone,
.material-icons.material-icons--two-tone {
  font-family: "Material Icons Two Tone";
}

.material-icons-round,
.material-icons.material-icons--round {
  font-family: "Material Icons Round";
}

.material-icons-sharp,
.material-icons.material-icons--sharp {
  font-family: "Material Icons Sharp";
}