# svg_pathify

> a node lib to turn svg shape elements into path svg elements

Latest version **0.0.8** (published 2018-07-09) · 0 weekly downloads

## Install

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

## 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.8 |
| Published | 2018-07-09 |
| First published | 2015-05-21 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 (+22 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 12 |
| Author | purplebamboo |
| Maintainers | purplebamboo |
| Keywords | svg, svg_pathify, path |

## Links

- npm: https://www.npmjs.com/package/svg_pathify
- Repository: https://github.com/purplebamboo/svgPathify
- Homepage: https://github.com/purplebamboo/svgPathify#readme
- Issues: https://github.com/purplebamboo/svgPathify/issues
- npm.io page: https://npm.io/package/svg_pathify

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^3.7.0
- [xmldom](https://npm.io/package/xmldom.md) ^0.1.19

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 0.0.8 (latest) — 2018-07-09
- 0.0.7 — 2016-03-24
- 0.0.6 — 2016-03-08
- 0.0.5 — 2015-05-24
- 0.0.4 — 2015-05-24
- 0.0.3 — 2015-05-24
- 0.0.2 — 2015-05-21

## README

# svgPathify

a node lib to turn svg shape elements into path svg elements

#install

```js
npm install svg_pathify
```

# usage

```js
var svgPathify = require('svg_pathify');

var result = svgPathify('<circle cx="500" cy="500" r="20" fill="red"/>');

/*
<path d="M500,500,m-20,0,a20,20,0,1,0,40,0,a20,20,0,1,0,-40,0,Z" fill="red"/>
*/


result = svgPathify('<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="1000" viewBox="10 10 1000 1000"><circle cx="500" cy="500" r="20" fill="red"/><circle cx="500" cy="500" r="20" fill="red"/></svg>');

/*
<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="1000" viewBox="10 10 1000 1000">
  <path d="M500,500,m-20,0,a20,20,0,1,0,40,0,a20,20,0,1,0,-40,0,Z" fill="red"/>
  <path d="M500,500,m-20,0,a20,20,0,1,0,40,0,a20,20,0,1,0,-40,0,Z" fill="red"/>
</svg>
*/
```

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