# @types/parse-svg-path

> TypeScript definitions for parse-svg-path

Latest version **0.1.0** (published 2026-02-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/parse-svg-path
pnpm add @types/parse-svg-path
yarn add @types/parse-svg-path
bun add @types/parse-svg-path
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; popular repo; extremely popular.

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

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2026-02-05 |
| First published | 2026-02-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51340 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/parse-svg-path
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-svg-path
- npm.io page: https://npm.io/package/@types/parse-svg-path

## Recent versions

- 0.1.0 (latest) — 2026-02-05

## README

# Installation
> `npm install --save @types/parse-svg-path`

# Summary
This package contains type definitions for parse-svg-path (https://github.com/jkroso/parse-svg-path).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-svg-path.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-svg-path/index.d.ts)
````ts
/**
 * A parsed SVG path command.
 * First element is the command letter (M, L, C, etc.), followed by numeric arguments.
 */
type PathCommand = [string, ...number[]];

/**
 * Parse an SVG path data string into an array of commands.
 *
 * Each command is an array where the first element is the command letter
 * and the remaining elements are the numeric arguments.
 *
 * @param path - SVG path data string (e.g., "M0 0 L10 10")
 * @returns Array of parsed commands
 *
 * @example
 * ```javascript
 * const parse = require('parse-svg-path');
 *
 * parse('M0 0 L10 10 Z');
 * // => [['M', 0, 0], ['L', 10, 10], ['Z']]
 *
 * parse('m10 10 h5 v5');
 * // => [['m', 10, 10], ['h', 5], ['v', 5]]
 * ```
 */
declare function parse(path: string): PathCommand[];

export = parse;

````

### Additional Details
 * Last updated: Thu, 05 Feb 2026 08:45:22 GMT
 * Dependencies: none

# Credits
These definitions were written by [gaspard](https://github.com/gasp).

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