Skip to content

moul/ascii2svg

ascii2svg

😄 ascii2svg creates .svg images from an ascii text

CircleCI GoDoc License GitHub release Go Report Card CodeFactor codecov Docker Metrics Sourcegraph Made by Manfred Touron

Usage

$ cat SECURITY.md | ascii2svg
<?xml version="1.0" encoding="UTF-8"?>
<svg width="800px" height="600px" viewBox="0 0 800 600" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <g>
    <rect x="0" y="0" width="800" height="600" fill="black" stroke="white"></rect>
    <foreignObject x="15" y="5" width="770" height="590">
      <div xmlns="http://www.w3.org/1999/xhtml" style="width:800px; height:600px; overflow-y:auto; color: white; font-size: 20px;">
        <pre># Reporting security issues

I take security seriously. If you discover a security issue, please bring it to my attention right away!

### Reporting a Vulnerability

Please **DO NOT** file a public issue, instead send your report privately to [email protected].

Security reports are greatly appreciated and I will publicly thank you for it, although I keep your name confidential if you request it.
</pre>
      </div>
    </foreignObject>
  </g>
</svg>

Install

Using go

$ go get -u moul.io/ascii2svg

Using brew

$ brew install moul/moul/ascii2svg

Download releases

https://github.com/moul/ascii2svg/releases

License

© 2019 Manfred Touron - Apache-2.0 License