csvg
TypeScript icon, indicating that this package has built-in type declarations

0.3.2 • Public • Published

csvg

npm version npm downloads tests

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)

Dependents (0)

Package Sidebar

Install

npm i csvg

Weekly Downloads

0

Version

0.3.2

License

MIT

Unpacked Size

5.76 MB

Total Files

14

Last publish

Collaborators

  • beicause