Code coverage report for lib/util/nameStream.js

Statements: 100% (8 / 8)      Branches: 100% (0 / 0)      Functions: 100% (2 / 2)      Lines: 100% (8 / 8)      Ignored: none     

All files » lib/util/ » nameStream.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17    1 1 1   1 5 282       282 282      
'use strict';
 
var through = require('through2');
var normalizeName = require('./normalizeName');
var normalizePath = require('./normalizePath');
 
module.exports = function(options) {
  return through.obj(function(chunk, _, next) {
    var data = {
      path: normalizePath(chunk, options),
      name: normalizeName(chunk, options)
    };
    this.push(data);
    next();
  });
};