Skip to content

ribaptista/svg-transform-parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svg-transform-parser

Parse SVG transform in Javascript

Installation

npm install svg-transform-parser

Usage

var parseSvgTransform = require('svg-transform-parser').parse;

parseSvgTransform("translate(10,20)");
// {translate: {tx: 10, ty: 20}}

Compile pegjs

npm run-script compile

Tests

npm test

About

Parse SVG transform attribute in Javascript

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%