{"_id":"svg2png-cli","_rev":"15-fe21ff5476c080470815385cc8a14c3f","name":"svg2png-cli","description":"A CLI wrapper for domenic/svg2png.","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"svg2png-cli","description":"A SVG to PNG converter, using PhantomJS.","version":"1.0.0","author":{"name":"Domenic Denicola","email":"domenic@domenicdenicola.com","url":"http://domenicdenicola.com"},"license":"WTFPL","repository":{"type":"git","url":"git://github.com/domenic/svg2png.git"},"bugs":{"url":"http://github.com/domenic/svg2png/issues"},"main":"lib/svg2png.js","directories":{"lib":"lib"},"scripts":{"test":"mocha","lint":"jshint lib"},"dependencies":{"phantomjs":">= 0.2.0"},"devDependencies":{"coffee-script":">= 1.3.3","chai":">= 1.3.0","jshint":">= 0.9.1","mocha":">= 1.6.0"},"preferGlobal":"true","bin":{"svg2png":"lib/svg2png_cli.js"},"readme":"# SVG-to-PNG Converter Using PhantomJS\n\nYou have a SVG file. For whatever reason, you need a PNG. **svg2png** can help.\n\n```js\nsvg2png(\"source.svg\", \"dest.png\", function (err) {\n // PNGs for everyone!\n});\n```\n\nMaybe you need to scale the image while converting? We can do that too:\n\n```js\nsvg2png(\"source.svg\", \"dest.png\", 1.2, function (err) {\n // 1.2×-sized PNGs for everyone!\n});\n```\n\nThe scale factor is relative to the SVG's `viewbox` or `width`/`height` attributes, for the record.\n\nTo convert all svg files in a specified directory you may also use the CLI\n\n``` \nsvg2png directory\n```\n\nsvg2png is built on the latest in [PhantomJS][] technology to render your SVGs using a headless WebKit instance. I have\nfound this to produce much more accurate renderings than other solutions like GraphicsMagick or Inkscape. Plus, it's\neasy to install cross-platform due to the excellent [phantomjs][package] npm package—you don't even need to have\nPhantomJS in your `PATH`.\n\n[PhantomJS]: http://phantomjs.org/\n[package]: https://npmjs.org/package/phantomjs\n","readmeFilename":"README.md","_id":"svg2png-cli@1.0.0","dist":{"shasum":"3cf442db6ac2df76b46a7747d496653be85e9aef","tarball":"https://registry.npmjs.org/svg2png-cli/-/svg2png-cli-1.0.0.tgz","integrity":"sha512-hS4uX3YzpHgf5tSbWe080nsxKX/X5M5ruIwNMyJrayqXDY1uIA+q7z8XI/MPE6tLKIVlrfupbRZI7qcRmvrRig==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFd69vaxrNW0cNA/LJ+ubmwqTr8sW5OxMnBHOfL7zNmrAiEA3lyEy20ZHmo9llQ3IpDTaB1GzgBsecztphBNK9crdEY="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"skyzyx","email":"ryan@ryanparman.com"},"maintainers":[{"name":"skyzyx","email":"ryan@ryanparman.com"}]},"1.0.1":{"name":"svg2png-cli","description":"A CLI wrapper for domenic/svg2png.","version":"1.0.1","author":{"name":"Domenic Denicola","url":"http://github.com/domenic"},"license":"WTFPL","repository":{"type":"git","url":"git://github.com/skyzyx/svg2png-cli.git"},"bugs":{"url":"http://github.com/domenic/svg2png/issues"},"main":"lib/svg2png.js","directories":{"lib":"lib"},"scripts":{"test":"mocha","lint":"jshint lib"},"dependencies":{"phantomjs":">= 0.2.0"},"devDependencies":{"coffee-script":">= 1.3.3","chai":">= 1.3.0","jshint":">= 0.9.1","mocha":">= 1.6.0"},"preferGlobal":"true","bin":{"svg2png":"lib/svg2png_cli.js"},"readme":"# SVG-to-PNG Converter Using PhantomJS\n\nYou have a SVG file. For whatever reason, you need a PNG. **svg2png** can help.\n\n```js\nsvg2png(\"source.svg\", \"dest.png\", function (err) {\n // PNGs for everyone!\n});\n```\n\nMaybe you need to scale the image while converting? We can do that too:\n\n```js\nsvg2png(\"source.svg\", \"dest.png\", 1.2, function (err) {\n // 1.2×-sized PNGs for everyone!\n});\n```\n\nThe scale factor is relative to the SVG's `viewbox` or `width`/`height` attributes, for the record.\n\nTo convert all svg files in a specified directory you may also use the CLI\n\n``` \nsvg2png directory\n```\n\nsvg2png is built on the latest in [PhantomJS][] technology to render your SVGs using a headless WebKit instance. I have\nfound this to produce much more accurate renderings than other solutions like GraphicsMagick or Inkscape. Plus, it's\neasy to install cross-platform due to the excellent [phantomjs][package] npm package—you don't even need to have\nPhantomJS in your `PATH`.\n\n[PhantomJS]: http://phantomjs.org/\n[package]: https://npmjs.org/package/phantomjs\n","readmeFilename":"README.md","_id":"svg2png-cli@1.0.1","dist":{"shasum":"b640dd9350363d8fbf1dd935d7b3e34c66684598","tarball":"https://registry.npmjs.org/svg2png-cli/-/svg2png-cli-1.0.1.tgz","integrity":"sha512-/wdpXAFO4okTxi62DOPCbcncPSoUD1Ptw3MEL8Q3EzUxL9o1v3viTuPV/otBjRHLLBKWFq1raheCwwSchgwGOQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJM/S74J/f7yKCuJrG0c2X9kmKbrW0cLk9XD06nN8zNQIhAN9TvxeWcuicnwajxDO4T9C1P3LXztk/p+yDC2MtV2iC"}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"skyzyx","email":"ryan@ryanparman.com"},"maintainers":[{"name":"skyzyx","email":"ryan@ryanparman.com"}]},"1.1.0":{"name":"svg2png-cli","description":"A CLI wrapper for domenic/svg2png.","version":"1.1.0","author":{"name":"Ryan Parman","url":"http://github.com/skyzyx"},"license":"WTFPL","repository":{"type":"git","url":"git://github.com/skyzyx/svg2png-cli.git"},"bugs":{"url":"http://github.com/skyzyx/svg2png/issues"},"main":"lib/svg2png.js","directories":{"lib":"lib"},"scripts":{"test":"mocha","lint":"jshint lib"},"dependencies":{"phantomjs":">= 0.2.0","optimist":"0.3.x"},"devDependencies":{"coffee-script":">= 1.3.3","chai":">= 1.3.0","jshint":">= 0.9.1","mocha":">= 1.6.0"},"preferGlobal":"true","bin":{"svg2png":"lib/svg2png_cli.js"},"readme":"# svg2png-cli\n\n**svg2png-cli** is a simple CLI wrapper for [svg2png](https://github.com/domenic/svg2png)\nby Domenic Denicola. Forked from earlier work on the CLI wrapper by\n[Luca Corbo](http://lucor.github.com).\n\n\n## Installation\nIt's built on [Node.js](http://nodejs.org) and can be found in `npm`.\n\n\t# Local installation\n\tnpm install svg2png-cli\n\n\t# Global installation\n\tsudo npm install -g svg2png-cli\n\n\n## Usage\nCalling `svg2png` with no parameters, or with `-h` or `--help`, you can see the help screen.\n\n\tusage: svg2png input[.svg] [options]\n\n\tConverts SVG images into PNG images, optionally resizing them and crushing them.\n\n\tPass a directory to scan for *.svg files, or pass an individual *.svg file to convert.\n\tThe output filename will be the same as the input unless a scale factor or width is used,\n\tin which case that value will be appended to the end of the filename.\n\n\toptions:\n\t -s, --scale Scale the height and width by this (float) factor.\n\t The default value is 1.0. Takes priority over --width.\n\t -w, --width Resize the PNG to a specific width, scaling the height automatically.\n\t The default value is the width of the source SVG.\n\t -q, --quiet Be quiet, dammit!\n\t -h, --help You're staring at it.\n","readmeFilename":"README.md","_id":"svg2png-cli@1.1.0","dist":{"shasum":"747f2de6ce321294404a8c43c975d9be754dc8be","tarball":"https://registry.npmjs.org/svg2png-cli/-/svg2png-cli-1.1.0.tgz","integrity":"sha512-maCAXLMwQ3HlczZB0y1BJTKyy1kURfPkZSjF7kNLaDTNtCRLGX/oboclpLF1hNbhv5pAI0zPwuOjn6+p4bhBgw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzTbdPOQiRE7bYlIIryQrPHJml0CYbCh1658VsDRKdfAIgQUXTy016qdFDqBzu+qiCSj27KoEiwJDAAgD+stOqlNI="}]},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"skyzyx","email":"ryan@ryanparman.com"},"maintainers":[{"name":"skyzyx","email":"ryan@ryanparman.com"}]},"1.1.1":{"name":"svg2png-cli","description":"A CLI wrapper for domenic/svg2png.","version":"1.1.1","author":{"name":"Ryan Parman","url":"http://github.com/skyzyx"},"license":"WTFPL","repository":{"type":"git","url":"git://github.com/skyzyx/svg2png-cli.git"},"bugs":{"url":"http://github.com/skyzyx/svg2png/issues"},"main":"lib/svg2png.js","directories":{"lib":"lib"},"scripts":{"test":"mocha","lint":"jshint lib"},"dependencies":{"phantomjs":">= 0.2.0","optimist":"0.3.x"},"devDependencies":{"coffee-script":">= 1.3.3","chai":">= 1.3.0","jshint":">= 0.9.1","mocha":">= 1.6.0"},"preferGlobal":"true","bin":{"svg2png":"lib/svg2png_cli.js"},"readme":"# svg2png-cli\n\n**svg2png-cli** is a simple CLI wrapper for [svg2png](https://github.com/domenic/svg2png)\nby Domenic Denicola. Forked from earlier work on the CLI wrapper by\n[Luca Corbo](http://lucor.github.com).\n\n\n## Installation\nIt's built on [Node.js](http://nodejs.org) and can be found in [npm](https://npmjs.org/package/svg2png-cli).\n\n\t# Local installation\n\tnpm install svg2png-cli\n\n\t# Global installation\n\tsudo npm install -g svg2png-cli\n\n\n## Usage\nCalling `svg2png` with no parameters, or with `-h` or `--help`, you can see the help screen.\n\n\tusage: svg2png input[.svg] [options]\n\n\tConverts SVG images into PNG images, optionally resizing them and crushing them.\n\n\tPass a directory to scan for *.svg files, or pass an individual *.svg file to convert.\n\tThe output filename will be the same as the input unless a scale factor or width is used,\n\tin which case that value will be appended to the end of the filename.\n\n\toptions:\n\t -s, --scale Scale the height and width by this (float) factor.\n\t The default value is 1.0. Takes priority over --width.\n\t -w, --width Resize the PNG to a specific width, scaling the height automatically.\n\t The default value is the width of the source SVG.\n\t -q, --quiet Be quiet, dammit!\n\t -h, --help You're staring at it.\n","readmeFilename":"README.md","_id":"svg2png-cli@1.1.1","dist":{"shasum":"0a8c2e351aa41152a49a62c75b08edce53a807e3","tarball":"https://registry.npmjs.org/svg2png-cli/-/svg2png-cli-1.1.1.tgz","integrity":"sha512-Pr2CFtCbnrAVjN6Y/Cqqo0bxixAfHWuS4lbUKClzz/ztzKkEBeP6aNd1w2NB/m+Ya1Cw1o/dWKvbGboKGrtw5w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFgWcXnpIP+yh5O/ROjwSZt0+jJYvAFHY2hqazXXACNPAiBHBJQ5qE/hm1cfZacT8w92oQa+yE+wKOJPu/AfxKYkwA=="}]},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"skyzyx","email":"ryan@ryanparman.com"},"maintainers":[{"name":"skyzyx","email":"ryan@ryanparman.com"}]}},"readme":"# SVG-to-PNG Converter Using PhantomJS\n\nYou have a SVG file. For whatever reason, you need a PNG. **svg2png** can help.\n\n```js\nsvg2png(\"source.svg\", \"dest.png\", function (err) {\n // PNGs for everyone!\n});\n```\n\nMaybe you need to scale the image while converting? We can do that too:\n\n```js\nsvg2png(\"source.svg\", \"dest.png\", 1.2, function (err) {\n // 1.2×-sized PNGs for everyone!\n});\n```\n\nThe scale factor is relative to the SVG's `viewbox` or `width`/`height` attributes, for the record.\n\nTo convert all svg files in a specified directory you may also use the CLI\n\n``` \nsvg2png directory\n```\n\nsvg2png is built on the latest in [PhantomJS][] technology to render your SVGs using a headless WebKit instance. I have\nfound this to produce much more accurate renderings than other solutions like GraphicsMagick or Inkscape. Plus, it's\neasy to install cross-platform due to the excellent [phantomjs][package] npm package—you don't even need to have\nPhantomJS in your `PATH`.\n\n[PhantomJS]: http://phantomjs.org/\n[package]: https://npmjs.org/package/phantomjs\n","maintainers":[{"name":"skyzyx","email":"ryan@ryanparman.com"}],"time":{"modified":"2022-06-27T02:38:06.391Z","created":"2013-03-15T09:10:26.718Z","1.0.0":"2013-03-15T09:10:28.438Z","1.0.1":"2013-03-15T09:17:23.441Z","1.1.0":"2013-03-17T03:42:47.253Z","1.1.1":"2013-03-17T03:55:24.316Z"},"author":{"name":"Ryan Parman","url":"http://github.com/skyzyx"},"repository":{"type":"git","url":"git://github.com/skyzyx/svg2png-cli.git"},"users":{}}