{"id":22744211,"url":"https://github.com/rametta/cute-svg","last_synced_at":"2025-08-11T02:10:25.732Z","repository":{"id":66341483,"uuid":"152242897","full_name":"rametta/cute-svg","owner":"rametta","description":"📸 Cute SVG's from images","archived":false,"fork":false,"pushed_at":"2018-10-16T01:29:19.000Z","size":287,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T23:53:01.313Z","etag":null,"topics":["cute","image","svg"],"latest_commit_sha":null,"homepage":"https://cute-svg.surge.sh/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rametta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-09T11:55:40.000Z","updated_at":"2018-10-16T01:29:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"57ad5cdc-b954-4e0c-9dc4-a22994f72dcc","html_url":"https://github.com/rametta/cute-svg","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"63815df5f8a2c331007191c0850052f26990ff68"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rametta%2Fcute-svg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rametta%2Fcute-svg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rametta%2Fcute-svg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rametta%2Fcute-svg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rametta","download_url":"https://codeload.github.com/rametta/cute-svg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246277351,"owners_count":20751548,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cute","image","svg"],"created_at":"2024-12-11T01:41:01.792Z","updated_at":"2025-03-30T04:43:40.516Z","avatar_url":"https://github.com/rametta.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/v/cute-svg.svg)](http://npm.im/cute-svg)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)\n[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/rametta/cute-svg/)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\n# 📸 Cute SVG\n\nImage optimizer by converting to SVG. [Demo](https://cute-svg.surge.sh/)\n\n## Install\n\n`yarn add cute-svg`\n\n## Usage\n\n```js\nconst cute = require('cute-svg')\nconst fs = require('fs')\n\nconst inputFile = __dirname + '/sample.jpg'\nconst outputFile = __dirname + '/output.json'\n\ncute({ filePath: inputFile })\n  .then(svg =\u003e fs.writeFileSync(outputFile, svg))\n  .catch(e =\u003e console.log(e))\n\n// OUTPUT\n// { tracedSvg: String, aspectRatio: Number }\n```\n\n## Example\n\n### From this:\n\n133kb\n\n![notcute](src/sample.jpg 'Sample image not cute')\n\n### To this:\n\n36kb\n\n![cute](src/output.png 'Sample image cute')\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frametta%2Fcute-svg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frametta%2Fcute-svg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frametta%2Fcute-svg/lists"}