material-icons-list

1.2.0 • Public • Published

Material Icons List

About

A simple script to get all icons name from material-icons official website

Features And Props

  • iconsList
  • iconsLength
  • iconsListByCategory()
  • iconsListByTag()
  • iconsListByPopularity()

Note: learm how to use it in Usage

Installation

Note: You can use yarn or npm as a package manager, here i'm using yarn

yarn add material-icons-list

Usage

Get All

// the whole list without any filtering
const { all } = require("material-icons-list");
console.log(all); // array of objects contains the icons informations

Get Icons Count/Length

// the icons count
const { iconsLength } = require("material-icons-list");
console.log(iconsLength); // icons count

Get Icons List (Names Only)

// the full list (names only)
const { iconsList } = require("material-icons-list");
console.log(iconsList); // get array of strings contains icons name

Get Icons List By Category (Names Only)

// the full list by category (names only)
const { iconsListByCategory } = require("material-icons-list");
console.log(iconsListByCategory("home")); // get all icons under 'home' category

Get Icons List By Tag (Names Only)

// the full list by tags (names only)
const { iconsListByTag } = require("material-icons-list");
console.log(iconsListByTag("view")); // get all icons under 'view' tag

Get Icons List By Popularity (Names Only)

// the full list by popularity (names only)
const { iconsListByPopularity } = require("material-icons-list");
console.log(iconsListByPopularity()); // get all icons sorted by the popularity prop
console.log(iconsListByPopularity(10)); // get 10 of icons sorted by the popularity prop

Changelog

read from here

License

MIT

Package Sidebar

Install

npm i material-icons-list

Weekly Downloads

224

Version

1.2.0

License

MIT

Unpacked Size

903 kB

Total Files

9

Last publish

Collaborators

  • mohssineaboutaj