Useful Node Programs: Difference between revisions
(Created page with "A list of useful node programs.<br> You can install them with <code>npm -i <program></code> ==Convert SVG to PNG== [https://www.npmjs.com/package/convert-svg-to-png Link]") |
|||
Line 3: | Line 3: | ||
==Convert SVG to PNG== | ==Convert SVG to PNG== | ||
[https://www.npmjs.com/package/convert-svg-to-png Link] | [https://www.npmjs.com/package/convert-svg-to-png Link]<br> | ||
Good for rastering SVG files for programs which only import PNG files like Adobe Premiere.<br> | |||
<pre> | |||
npm i -g convert-svg-to-png | |||
</pre> | |||
<syntaxhighlight lang="bash"> | |||
Usage: convert-svg-to-png [options] [files...] | |||
Options: | |||
-V, --version output the version number | |||
--no-color disables color output | |||
--background <color> specify background color for transparent regions in SVG | |||
--base-url <url> specify base URL to use for all relative URLs in SVG | |||
--filename <filename> specify filename for the PNG output when processing STDIN | |||
--height <value> specify height for PNG | |||
--puppeteer <json> specify a json object for puppeteer.launch options | |||
--scale <value> specify scale to apply to dimensions [1] | |||
--width <value> specify width for PNG | |||
-h, --help output usage information | |||
</syntaxhighlight> |
Revision as of 13:27, 21 November 2019
A list of useful node programs.
You can install them with npm -i <program>
Convert SVG to PNG
Link
Good for rastering SVG files for programs which only import PNG files like Adobe Premiere.
npm i -g convert-svg-to-png
Usage: convert-svg-to-png [options] [files...]
Options:
-V, --version output the version number
--no-color disables color output
--background <color> specify background color for transparent regions in SVG
--base-url <url> specify base URL to use for all relative URLs in SVG
--filename <filename> specify filename for the PNG output when processing STDIN
--height <value> specify height for PNG
--puppeteer <json> specify a json object for puppeteer.launch options
--scale <value> specify scale to apply to dimensions [1]
--width <value> specify width for PNG
-h, --help output usage information