# trace-svg

> A library for tracing svg

Latest version **0.1.6** (published 2022-11-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install trace-svg
pnpm add trace-svg
yarn add trace-svg
bun add trace-svg
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; large bundle; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2022-11-02 |
| First published | 2022-10-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 22.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | thanhtran |
| Maintainers | kimthanh932000 |
| Keywords | react, potrace, trace-svg |

## Links

- npm: https://www.npmjs.com/package/trace-svg
- npm.io page: https://npm.io/package/trace-svg

## Dependencies (5)

- [svgo](https://npm.io/package/svgo.md) ^2.8.0
- [potrace](https://npm.io/package/potrace.md) ^2.1.8
- [bluebird](https://npm.io/package/bluebird.md) ^3.7.2
- [trace-svg](https://npm.io/package/trace-svg.md) file:src
- [mini-svg-data-uri](https://npm.io/package/mini-svg-data-uri.md) ^1.4.3

## Recent versions

- 0.1.6 (latest) — 2022-11-02
- 0.1.5 — 2022-10-31

## README

# Trace SVG

A `trace-svg` library to trace images.

## Example Usgae

```js
const client = require('trace-svg');
const image = require('image.png');

const dataPath = './data'

client.trace(image)
    /** Write data to target dir **/
    .then((res) => client.write(dataPath, fileName, res)
    .catch(err => {
        console.log('Failed to trace image: ', error?.message || error)
    }));
```

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