1.2.0 • Published 4 months ago

material-icons-list v1.2.0

Weekly downloads
49
License
MIT
Repository
github
Last release
4 months ago

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

1.2.0

4 months ago

1.1.2

2 years ago

1.1.0

3 years ago

1.0.21

4 years ago

1.0.1

4 years ago

1.0.2

4 years ago

1.0.0

4 years ago