Socket
Book a DemoInstallSign in
Socket

svg-to-symbol

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svg-to-symbol

Optimises an SVG and converts to a symbol

1.1.8
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

SVG to Symbol

Takes an SVG file, optimises it via SVGO and prints to stdout

Usage

Install globally with npm -g svg-to-symbol

or run via npx: npx svg-to-symbol file.svg symbol-id

  • Arg 1: file name <file.svg>
  • Arg 2 (optional): symbol id <symbol-id>

Optimize SVG only (one arg)

svg-to-symbol file.svg

Optimize SVG and return path wrapped in symbol (two args)

svg-to-symbol file.svg symbol-id

Pipe output to clipboard

  • Ubuntu: svg-to-symbol file.svg symbol-id | xclip -sel clip
  • Mac: svg-to-symbol file.svg symbol-id | pbcopy

FAQs

Package last updated on 11 Mar 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.