@mpt/freecad-sketch-to-icon

1.1.0 • Public • Published

This package provides an API or CLI to clean up and minimize a FreeCAD sketch that was exported as a "Flattened SVG" for use as an icon.

npm i -g @mpt/freecad-sketch-to-icon

# Example CLI usage:
freecad-sketch-to-icon -i ./input.svg -o ./output.svg
// Example API usage:
import { sketchToIcon } from "@mpt/freecad-sketch-to-icon";

const output = sketchToIcon({
  input: await readFile("./input.svg", "utf-8"),
});

Changelog

1.1.x

  • Add support for <circle> elements.

Readme

Keywords

none

Package Sidebar

Install

npm i @mpt/freecad-sketch-to-icon

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

10.3 kB

Total Files

5

Last publish

Collaborators

  • mpt