0.0.1 • Published 9 years ago

ab-svgutil v0.0.1

Weekly downloads
8
License
MIT
Repository
github
Last release
9 years ago

ab-svgutil

JavaScript SVG utils.

At the moment this module has 1 util:

  • Convert SVG URLs in 'img' elements to inline SVG code

Install

With npm do:

$ npm install ab-svgutil --save-dev

Usage

// all img elements using SVG URLs should have a ".svg" class

// Given the following Jade markup:
// img.svg(src= 'svg_file.svg');

// get the util
var svgutil = require('ab-svgutil');

// convert all img SVG to inline code
svgutil.convertAllToInline()

Dependencies

  • jQuery

License

MIT

0.0.1

9 years ago