Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function readStream() {
if ((fromCrs && toCrs) || (!argv.from && !argv.to)) {
var inputStream = ((argv._[0] && fs.createReadStream(argv._[0])) || process.stdin)
var parser = geojsonStream.parse()
.on('header', handleHeader)
var transformStream = es.mapSync(transform)
var outputStream = geojsonStream.stringify()
inputStream.pipe(parser)
parser.pipe(transformStream)
transformStream.pipe(outputStream)
outputStream.pipe(process.stdout)
}
}
return function (block) {
function templateCss(path) {
var template = block.indent + '';
return util.format(template, path);
}
var extractCssStream = es.mapSync(extractCss),
templateCssStream = es.mapSync(templateCss);
block.pipe(extractCssStream);
templateCssStream.pipe(block);
buildFn(es.duplex(templateCssStream, extractCssStream));
};
};