preview-tabular-data
v0.3.2
Published
Extract the first n lines of tabular dataset
Downloads
25
Readme
preview-tabular-data
Extract the first n lines of tabular dataset.
API
import { head } from 'preview-tabular-data';
head(readable, contentType, opts, (err, head, columns) => {
// do something with head and columns
});
opts
is an object with:
nHead
, the number of rows to extract for the head (defaults toInfinity
).nSample
, the number of rows to use to comput the columns description. (defaults toInfinity
)
Tests
npm test