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

@geektech/svg2icon

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@geektech/svg2icon

Svg to icon

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

svg2icon

Svg to icon

Usage

npm i @geektech/svg2icon

Makge dir '.svg2iconrc.js' in your project root like below;

{
  "dist": "dist", 
  "src": "svg",
  "fontName": "geek-icon",
  "classNamePrefix": "geekicon", 
  "linkMode": "inline",
  "ext": "wxss"
}

Makge dir 'svg' in your project and put in svg files;

Run

svg2icon

Or you can use your own script like below js:

const svgtoiconfont = require("@geektech/svg2icon");
 
svgtoiconfont({
  dist: "dist", // output path(输出文件路径)
  src: "svg", // svg path(svg资源路径)
  fontName: "geek-icon", // font name (字体名称)
  classNamePrefix: "geekicon", // class name prefix (class前缀)
  linkMode: 'link', // inline\link [default link]
  ext: 'less' // 后缀名
});

Keywords

FAQs

Package last updated on 25 Sep 2023

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