# d3-save-svg

> D3 plugin for exporting SVGs. Based on svg-crowbar by Shan Carter

Latest version **0.0.2** (published 2015-12-02) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install d3-save-svg
pnpm add d3-save-svg
yarn add d3-save-svg
bun add d3-save-svg
```

## 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.0.2 |
| Published | 2015-12-02 |
| First published | 2015-12-02 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 50 |
| Maintainers | edeno |
| Keywords | d3, svg, svg-crowbar |

## Links

- npm: https://www.npmjs.com/package/d3-save-svg
- Repository: https://github.com/edeno/d3-save-svg
- Issues: https://github.com/edeno/d3-save-svg/issues
- npm.io page: https://npm.io/package/d3-save-svg

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2015-12-02
- 0.0.1 — 2015-12-02

## README

# d3-save-svg

 A fork of the nytimes [svg-crowbar](http://nytimes.github.io/svg-crowbar/) bookmarklet that extracts SVG nodes and accompanying styles from an HTML document and downloads them as an SVG file --- A file which you could open and edit in Adobe Illustrator, for instance. Because SVGs are resolution independent, it’s great for when you want to use web technologies to create documents that are meant to be printed (like, maybe on newsprint). It was created with [d3.js](https://d3js.org) in mind, but it should work fine no matter how you choose to generate your SVG.

[Project page](http://edeno.github.com/d3-save-svg/)

### Differences from the bookmarklet
+  Can use to download specific svg, which can be incorporated into buttons for exporting images. See example on the [project page](http://edeno.github.com/d3-save-svg/).
+  Allows specification of custom file names.
+  Handles embedded raster images.
+  Has convenience method for embedding raster images.

### Note
Most of this has been cobbled together from stackoverflow and issues logged on the nytimes svg-crowbar repo.

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