npm.io
0.1.6 • Published 3 years ago

trace-svg

Licence
ISC
Version
0.1.6
Deps
5
Size
22.9 MB
Vulns
0
Weekly
0

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

Keywords