# is-svg-path

> Detect if string an SVG path

Latest version **1.0.2** (published 2017-08-23) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-08-23 |
| First published | 2017-07-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Dima Yv |
| Maintainers | dfcreative |
| Keywords | svg, path |

## Links

- npm: https://www.npmjs.com/package/is-svg-path
- Repository: https://github.com/dfcreative/is-svg-path
- Homepage: https://github.com/dfcreative/is-svg-path#readme
- Issues: https://github.com/dfcreative/is-svg-path/issues
- npm.io page: https://npm.io/package/is-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

- 1.0.2 (latest) — 2017-08-23
- 1.0.1 — 2017-07-22
- 1.0.0 — 2017-07-22

## README

# is-svg-path [![build](https://travis-ci.org/dfcreative/is-svg-path.svg?branch=master)](https://travis-ci.org/dfcreative/is-svg-path)

Test if a string is an SVG path.

[![npm install is-svg-path](https://nodei.co/npm/is-svg-path.png?mini=true)](https://npmjs.org/package/is-svg-path/)

```js
const isPath = require('is-svg-path')

isPath('M0 0L10 20 20 0Z') //true
isPath('M00Z') //false
isPath('xyz') //false
```

It does not validate path data nor covers edge cases like `'H0'` etc., but rather detects path in real world.

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