Skip to content
This repository has been archived by the owner on Jan 25, 2018. It is now read-only.

scienceai/preview-tabular-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 to Infinity).
  • nSample, the number of rows to use to comput the columns description. (defaults to Infinity)

Tests

npm test

About

Extract the first x lines of tabular dataset

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published