fileicons-classic
v1.0.0
Published
从 https://github.com/zfile-dev/zfile-vue 复制过来的经典网盘文件图标
Downloads
4
Readme
fileicons-classic
从 https://github.com/zfile-dev/zfile-vue 复制过来的经典网盘文件图标
use
// npm i --save fileicons-classic
import { getFileIconName, iconData } from "fileicons-classic"
const filename = '/Users/d1y/Downloads/dev.mp4'
const result = getFileIconName(filename) // result is 'video'
const svgIconData = iconData.get(result)
const $el = document.createElement('div')
$el.innerHTML = svgIconData