Useful Node Programs

From David's Wiki
Jump to navigation Jump to search

A list of useful node programs.
You can install them with npm -i -g <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