lib/js-transform.js
function svgToString (filename) {
  if (!/\.svg$/i.test(filename)) {
    return through()
  }

  return through(function (buf, enc, next) {
    this.push('module.exports=' + JSON.stringify(buf.toString('utf8')))
    next()
  })
}
function svgToString (filename) {
  if (!/\.svg$/i.test(filename)) {
    return through()
  }

  return through(function (buf, enc, next) {
    this.push('module.exports=' + JSON.stringify(buf.toString('utf8')))
    next()
  })
}
function svgToString ( filename ) { if ( ! / \.svg$ / i . test ( filename ) ) { return through ( ) } return through ( function ( buf , enc , next ) { this . push ( 'module.exports=' + JSON . stringify ( buf . toString ( 'utf8' ) ) ) next ( ) } ) }
Transform a svg file to a module containing a JSON string
Transform a svg file to a module containing a JSON string