0.6.0 • Published 6 years ago

svg-to-elm v0.6.0

Weekly downloads
30
License
MIT
Repository
-
Last release
6 years ago

svg-to-elm

A command line tool (and Node module if you so desire) to turn a .svg file into an Elm module.

Usage: svg-to-elm <command> [options]

Commands:
  svg-to-elm.ts parse  Parse an SVG to Elm

Options:
  --version          Show version number                  [boolean]
  -f, --file         The SVG to parse                    [required]
  -o, --output       The destination to write to         [required]
  -m, --module-name  The name of the Elm module          [required]
  --elm-version      The version of Elm to use [0.18 or 0.19]. This
                     is passed to elm-format if you use it.
  --elm-format-path  The path to Elm format, if you would like the
                     code run through it
  -h                 Show help                            [boolean]

Examples:
  svg-to-elm parse --file foo.svg --output Foo.elm --module-name Foo

Huge thanks goes to the creator of https://level.app/svg-to-elm for the initial idea and approach - I've just wrapped it up in a command line module!

0.6.0

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago