node-inline-svg
v1.0.1
Published
Simple Express middleware to replace img tag SVGs with inline SVGs
Downloads
3
Readme
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
- request - Node request object
- html - The html containg
<img>
tags - callback, with the parsed HTML with inline SVGs as the return value