Stats

 Latest version : 0.0.1

 Last updated on 2015-02-10T01:44:40.387Z

 Keywords : javascript, svg, util

 Downloads :

  • 6 in Last Month

 Links :

 Examples

¯\_(ツ)_/¯
No examples found for this package

 Readme

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

 Comments