Numeric Production Mechanism

    ab-svgutil

    0.0.1 • Public • Published

    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

    Install

    npm i ab-svgutil

    DownloadsWeekly Downloads

    4

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • antoniobrandao