covert svg files to paths for use with raphael and beyond.
JavaScript
Switch branches/tags
Nothing to show
Pull request Compare This branch is 6 commits ahead, 4 commits behind DmitryBaranovskiy:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
node_modules
.npmignore
README.md
package.json

README.md

svg2path

This is a simple tool to convert svg files into paths. It compliments pathicons very well. You can also use the paths with raphael directly.

Install

npm install svg2path -g

Usage

svg2path some.svg

This will create a file some.path

svg2path http://thenounproject.com/categories/people/

Creates a path file for each of icons in the people category.

Icon Sheets

You can build up a an icon sheet to be used in an application. This is a sheet.json file where the name of the icon is the key and the path is the value.

svg2path http://thenounproject.com/categories/people/ -s sheet.json

This will write all the icons to the sheet.json file.