
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@zaninime/svg-to-png
Advanced tools

Converts SVGs to PNGs
Install the module with: npm install svg-to-png
var svg_to_png = require('@zaninime/svg-to-png');
svg_to_png.convert("input", "output") // async, returns promise
.then( function(){
// Do tons of stuff
});
.convert
Type: String or Array
The Input can be one of: A String that is the file being converted, a
String that is a directory of files to be converted, or an Array of
files to convert.
Note: The files passed in MUST ALL be SVGs. If you want to pass in a
directory that is not all SVGs, use fs.readdir, filter the results,
and pass those in. An error will be thrown otherwise.
Type: String
Output folder
Type: Object
false, if true, will compress your png file
using optipng3, if compress is set to true, this will set the optimationLevel for optipngCheck out the tests!
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Copyright (c) 2013 Jeffrey Lembeck/Filament Group
Licensed under the MIT license.
FAQs
Converts SVGs to PNGs
The npm package @zaninime/svg-to-png receives a total of 1 weekly downloads. As such, @zaninime/svg-to-png popularity was classified as not popular.
We found that @zaninime/svg-to-png demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.