src/index.js
function handleStream (file, encoding, cb) {

  let config = '';

  file.contents.on('data', chunk => {
    config += chunk;
  });

  file.contents.on('end', () => {
    config = configParser(config);
    holograph.holograph(config);
    return cb(null, file);
  });

}
function handleStream (file, encoding, cb) {

  let config = '';

  file.contents.on('data', chunk => {
    config += chunk;
  });

  file.contents.on('end', () => {
    config = configParser(config);
    holograph.holograph(config);
    return cb(null, file);
  });

}
function handleStream ( file , encoding , cb ) { let config = '' ; file . contents . on ( 'data' , chunk => { config += chunk ; } ) ; file . contents . on ( 'end' , ( ) => { config = configParser ( config ) ; holograph . holograph ( config ) ; return cb ( null , file ) ; } ) ; }
Run Hologram when given a stream.

@param {Object} file A Vinyl file.
@param {String} encoding The file encoding.
@param {Function} cb Called after hologram has run.
@returns {Function} Executed callback.
Run Hologram when given a stream .