# abs-svg-path

> redefine an svg path with absolute coordinates

Latest version **0.1.1** (published 2013-11-25) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types package; no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2013-11-25 |
| First published | 2013-11-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/abs-svg-path) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 20 |
| Author | Jake Rosoman |
| Maintainers | jkroso |
| Keywords | absolute, svg, path |

## Links

- npm: https://www.npmjs.com/package/abs-svg-path
- Repository: https://github.com/jkroso/abs-svg-path
- Issues: https://github.com/jkroso/abs-svg-path/issues
- npm.io page: https://npm.io/package/abs-svg-path

## 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.1.1 (latest) — 2013-11-25
- 0.1.0 — 2013-11-23

## README

# abs-svg-path

  redefine an svg path with absolute coordinates

## Installation

_With [packin](//github.com/jkroso/packin) or [component](//github.com/component/component)_

    $ packin add jkroso/abs-svg-path

then in your app:

```js
var abs = require('abs-svg-path')
```

## API

### abs(path)

  redefine `path` with absolute coordinates

```js
abs([['l',10,20],['l',30,40]]) // => [['L',10,20],['L',40,60]]
abs([
  ['q', 1,2, 33,44],
  ['L', 50,60],
  ['c', 1,2, 3,4, 33,44]
]) // => [['Q',1,2,33,44],['L', 50, 60],['C',51,62, 53,64, 83,104]]
```

## Running the tests

Just run `make test`

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