🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

iconfont2svg

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iconfont2svg

通过iconfont链接生成独立svg文件的工具

latest
npmnpm
Version
1.0.7
Version published
Maintainers
1
Created
Source

iconfont2svg

node api usage

import iconfont2svg from 'iconfont2svg'
iconfont2svg({ url: 'https://at.alicdn.com/t/font_2408492_s98t8pbc3m.js' }: Parameters)

参数

interface Parameters {
  /* iconfont url */
  url: string
  /* 生成目录的目标路径 */
  path?: string
  /* 目录名称 */
  dirname?: string
  /* 转换 */
  convert?: (content: string, data: Symbol) => string
  /* 生成文件后缀,默认为 svg */
  suffix?: string
}

FAQs

Package last updated on 13 Aug 2021

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