Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@iconify/json

Package Overview
Dependencies
Maintainers
0
Versions
1113
Alerts
File Explorer

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.290
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
76K
decreased by-9.71%
Maintainers
0
Weekly downloads
 
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 28 Dec 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc