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

svgclean

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svgclean

Removes useless tags from exported svg files.

  • 0.2.9
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

SVGclean

Cleans up exported svg files by:

  1. Removing useless tags and attributes.
  2. Creates CSS class names based on fill attributes.

Install

From NPM for use as a command line app:

npm install svgclean -g

From NPM for programmatic use:

npm install --save svgclean

Usage

From the terminal

svgclean image.svg

or

svgclean image.svg image-clean.svg

As a Node.js module

var svgclean = require('svgclean');

// Modify existing file
svgclean('image-1.svg');

// Create new file
svgclean('image-2.svg', 'image-2-clean.svg');

// Passing a callback
svgclean('image-3.svg', function ()
{
  // Cleaning is done
});

svgclean('image-4.svg', 'image-4-clean.svg', function ()
{
  // Cleaning is done
});

License and copyrights

This software is released under the terms of the MIT license.


Inspired on (and works better with) SVGO.

Keywords

FAQs

Package last updated on 23 Oct 2014

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