Socket
Book a DemoInstallSign in
Socket

cute-svg

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cute-svg

Generate cute SVG traces based on images

latest
Source
npmnpm
Version
1.2.1
Version published
Maintainers
1
Created
Source

npm PRs Welcome Open Source Love License

📸 Cute SVG

Image optimizer by converting to SVG. Demo

Install

yarn add cute-svg

Usage

const cute = require('cute-svg')
const fs = require('fs')

const inputFile = __dirname + '/sample.jpg'
const outputFile = __dirname + '/output.json'

cute({ filePath: inputFile })
  .then(svg => fs.writeFileSync(outputFile, svg))
  .catch(e => console.log(e))

// OUTPUT
// { tracedSvg: String, aspectRatio: Number }

Example

From this:

133kb

notcute

To this:

36kb

cute

Keywords

svg

FAQs

Package last updated on 16 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts