New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@iconify/json

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iconify/json

Hundreds of open source icon sets in IconifyJSON format

2.2.318
Version published
Maintainers
1
Created

What is @iconify/json?

@iconify/json is a package that provides a collection of icon sets in JSON format. It allows developers to access a wide range of icons from different icon sets and use them in their projects. The package is useful for integrating icons into web applications, customizing icon sets, and managing icon data programmatically.

What are @iconify/json's main functionalities?

Accessing Icon Data

This feature allows you to access icon data from various icon sets included in the @iconify/json package. The code sample demonstrates how to require the package and access the Material Design Icons (mdi) set, logging the icon data to the console.

const iconData = require('@iconify/json');
const mdiIcons = iconData['mdi'];
console.log(mdiIcons);

Listing Available Icon Sets

This feature enables you to list all available icon sets included in the @iconify/json package. The code sample shows how to retrieve and log the names of all icon sets.

const iconData = require('@iconify/json');
const availableSets = Object.keys(iconData);
console.log(availableSets);

Retrieving Specific Icon Information

This feature allows you to retrieve information about a specific icon from an icon set. The code sample demonstrates how to access the 'home' icon from the Material Design Icons set and log its data.

const iconData = require('@iconify/json');
const mdiIcons = iconData['mdi'];
const specificIcon = mdiIcons.icons['home'];
console.log(specificIcon);

Other packages similar to @iconify/json

FAQs

Package last updated on 18 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts