1.0.1 • Published 7 years ago

node-inline-svg v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

node-inline-svg

Replace img tag SVGs with inline SVGs, for use with Express

Example Usage

var inlineSVG = require('node-inline-svg');

inlineSVG ( request , html , function ( error, parsedHtml ) {
    console.log ( parsedHtml );
} );

Parameters

  1. request - Node request object
  2. html - The html containg <img> tags
  3. callback, with the parsed HTML with inline SVGs as the return value