0.1.6 • Published 2 years ago

trace-svg v0.1.6

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Trace SVG

A trace-svg library to trace images.

Example Usgae

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)
    }));