🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

@tntd/file-icon

Package Overview
Dependencies
Maintainers
7
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tntd/file-icon

file type icons

latest
npmnpm
Version
0.1.4
Version published
Maintainers
7
Created
Source

文件图标

这是一个内置了常用图标的npm库,可以很方便的调用,图标格式为svg,宽高相等,扁平化的设计,适合现在我们常用的系统风格;

安装

npm install @tntd/file-icon --save-dev

使用

import { FileIcon } from "@tntd/file-icon";

我们提供三种方式调用图标:
1、传入后缀名:<FileIcon extname="jpeg"/>
2、传入文件名称:<FileIcon name="README.md"/>
2、传入文件链接:<FileIcon url="https://www.baidu.com/cdn/demo.key"/>

FAQs

Package last updated on 30 Mar 2020

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