Skip to content

A node lib to convert svg shape elements into path svg elements.

Notifications You must be signed in to change notification settings

5bruce/convertpath

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

convertpath npm

A node lib to convert svg shape elements into path svg elements.

Install

npm install convertpath

Usage

const parse = require('convertpath');

parse.parse("./test/test.svg")
/**
 * '<circle cx="500" cy="500" r="20" fill="red"/>'
 */
console.log(parse.toSimpleSvg())

/**
 * '<path d="M500,500,m-20,0,a20,20,0,1,0,40,0,a20,20,0,1,0,-40,0,Z" fill="red"/>'
 */

About

A node lib to convert svg shape elements into path svg elements.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%