csvg
Experimental
CSVG is a preprocessor with some useful functions for drawing and make CSS animation or SMIL animation in SVG easier.(Actually it's not limited to this, any string is ok)
Documentation
please visit beicause.github.io/csvg.
Get Start
You can Try it online and see the example.
Install it with npm.
npm install csvg
then import Compiler
to process your svg string.
import { Compiler } from 'csvg'
// use Compiler's processors
const output = new Compiler().compile(svg)
// use svgo optimizer
const optimized = await Compiler.optimize(output,config)