| 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();
});
};
|