# svg-path-tools

Latest version **1.0.0** (published 2018-06-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install svg-path-tools
pnpm add svg-path-tools
yarn add svg-path-tools
bun add svg-path-tools
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-06-06 |
| First published | 2018-06-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 30 |
| Author | Lionel T |
| Maintainers | elrumordelaluz |
| Keywords | svg, path, paths, manipulation, tools |

## Links

- npm: https://www.npmjs.com/package/svg-path-tools
- Repository: https://github.com/elrumordelaluz/path-utils
- Homepage: https://github.com/elrumordelaluz/path-utils#readme
- Issues: https://github.com/elrumordelaluz/path-utils/issues
- npm.io page: https://npm.io/package/svg-path-tools

## 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

- 1.0.0 (latest) — 2018-06-06

## README

<p align="center">
  <img alt="SVG Path Tools!" title="SVG Path Tools!" src="logo.svg" width="450">
</p>

<p align="center">
  Tools to manipulate <code>path</code>, such as <code>parse</code> and <code>scale</code>.
  <br />
  [wip]
</p>

## Install

```zsh
yarn add svg-path-tools
```

## Usage

```js
import { parse, scale, stringify } from 'path-utils'

const d = 'M15 10A5 5 0 0 1 10 15A5 5 0 0 1 5 10A5 5 0 0 1 15 10z'
const parsed = parse(d)
const scaled = scale(parsed, { scale: 0.5 })
const stringified = stringify(scaled)

// 'M7.5 5A2.5 2.5 0 0 1 5 7.5A2.5 2.5 0 0 1 2.5 5A2.5 2.5 0 0 1 7.5 5z'
```

## Related

[element-to-path](https://github.com/elrumordelaluz/element-to-path) Convert SVG element into `path`

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