UNPKG

react-pivot

Version:

React-Pivot is a data-grid component with pivot-table-like functionality for data display, filtering, and exploration.

13 lines (10 loc) 296 B
var through = require('through2'); module.exports = function (file, opts) { var data = ''; return through(write, end); function write (buf, enc, next) { data += buf; next() } function end () { this.push(data.replace(/X/g, opts.x)); this.push(null); } };