# rendersvg

> Renders SVGs to PNG, GIF, JPEG, or PDF using PhantomJS

Latest version **0.1.0** (published 2014-04-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install rendersvg
pnpm add rendersvg
yarn add rendersvg
bun add rendersvg
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2014-04-14 |
| First published | 2012-12-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Tim Cameron Ryan |
| Maintainers | timcameronryan, tcr |
| Keywords | render, svg, pdf, png, jpeg, jpg, gif, raster, convert, image |

## Links

- npm: https://www.npmjs.com/package/rendersvg
- Repository: https://github.com/tcr/rendersvg
- Issues: https://github.com/tcr/rendersvg/issues
- npm.io page: https://npm.io/package/rendersvg

## Dependencies (2)

- [temp](https://npm.io/package/temp.md) ~0.5.0
- [node-phantom](https://npm.io/package/node-phantom.md) ~0.1.2

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2014-04-14
- 0.0.3 — 2012-12-31
- 0.0.2 — 2012-12-31
- 0.0.1 — 2012-12-31

## README

# rendersvg for Node.js

Renders SVGs using PhantomJS.

```javascript
var rendersvg = require('rendersvg');

instream.pipe(rendersvg.renderStream([ext = 'png'])).pipe(outstream)
// or
rendersvg.convert(inbuffer, [ext = 'png'], function (err, outbuf) {
	// ...
})
```

Possible extensions:

* png
* gif
* jpg
* pdf

## Requirements

**OS X:** ```brew install phantomjs```

## License

MIT.

---
_Source: https://npm.io/package/rendersvg · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
