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

milist

v1.0.4

Published

A simple tool to generate a list of Material Icons available in the Material Icons font

Readme

Material Icons List

This is a simple tool to generate a list of Material Icons available in the Material Icons font. It uses This Repo as a source.

IMPORTANT: This tool requires Internet connection to work.

Rate Limits: This tool uses GitHub's API which has rate limits. For better performance and higher rate limits, set up a GitHub token:

  1. Environment Variable: Set GITHUB_TOKEN environment variable
  2. Or use .env file: Copy env.example to .env and add your token
  3. Get a token: Visit GitHub Settings > Tokens (no special permissions needed)

How to use

As a CLI

# if you want to install it globally
npm i -g milist
milist > output.txt                          # Uses codepoints source (most comprehensive)
milist --json > output.json                  # Uses codepoints source with JSON output
milist --ts > material-icons.ts              # Uses codepoints source with TypeScript output
milist --source web > web-icons.txt          # Uses web source specifically

# if you want to use just once
npx milist > output.txt                      # Uses codepoints source (most comprehensive)
npx milist --json > output.json              # Uses codepoints source with JSON output
npx milist --ts > material-icons.ts          # Uses codepoints source with TypeScript output
npx milist --source web > web-icons.txt      # Uses web source specifically

As a Library (CommonJs)

const { list } = require('milist');
const icons: string[] = list('web');
console.log(icons); // list of icons in string[] format

As a Library (ESM)

import { list } from 'milist';
const icons: string[] = list('web');
console.log(icons); // list of icons in string[] format

Parameters

--source

  • android: will use the android source
  • ios: will use the ios source
  • web: will use the web source
  • code: will use the codepoints file (most comprehensive list, includes all Material Symbols) [DEFAULT]

Note: If --source is omitted, code is used by default as it provides the most comprehensive list of 4,095+ Material Icons.

Output format

  • --json: With JSON format
  • --text: With simple text format (each name in a new line)
  • --ts: With TypeScript format (const array + type definition)

TypeScript Output Example

// Generated with: milist --ts > material-icons.ts (uses code source by default)
export const icons = [
  "10k",
  "10mp",
  "home",
  "search",
  // ... all 4,095+ icons from codepoints
] as const;

export type MaterialIcon = typeof icons[number];

// Usage in your TypeScript project:
import { icons, MaterialIcon } from './material-icons';

const myIcon: MaterialIcon = "home"; // Type-safe!
const iconExists = icons.includes("search"); // true

Testing

This package includes comprehensive tests:

# Run all tests
npm test

# Run specific test suites
npm run test:simple      # Basic functionality tests
npm run test:cli         # Command-line interface tests  
npm run test:functional  # Real API tests (requires GITHUB_TOKEN)

# Run tests with coverage
npm run test:coverage

# Watch mode for development
npm run test:watch

Note: Functional tests require a GITHUB_TOKEN environment variable for better rate limits when testing against the real GitHub API.