1.1.0 • Published 10 months ago

@mpt/freecad-sketch-to-icon v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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.
1.1.0

10 months ago

1.0.0

10 months ago