# preview-tabular-data

> Extract the first n lines of tabular dataset

Latest version **0.3.2** (published 2016-04-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install preview-tabular-data
pnpm add preview-tabular-data
yarn add preview-tabular-data
bun add preview-tabular-data
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.2 |
| Published | 2016-04-04 |
| First published | 2014-04-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 (+6 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Sebastien Ballesteros |
| Maintainers | sballesteros |
| Keywords | preview, tabular, dataset |

## Links

- npm: https://www.npmjs.com/package/preview-tabular-data
- Repository: https://github.com/scienceai/preview-tabular-data
- Issues: https://github.com/scienceai/preview-tabular-data/issues
- npm.io page: https://npm.io/package/preview-tabular-data

## Dependencies (6)

- [once](https://npm.io/package/once.md) 1.3.3
- [xlsx](https://npm.io/package/xlsx.md) ^0.8.0
- [split2](https://npm.io/package/split2.md) 2.0.1
- [csv-parser](https://npm.io/package/csv-parser.md) 1.9.3
- [concat-stream](https://npm.io/package/concat-stream.md) 1.5.1
- [jsonld-context-infer](https://npm.io/package/jsonld-context-infer.md) 0.3.1

## Recent versions

- 0.3.2 (latest) — 2016-04-04
- 0.3.1 — 2015-10-04
- 0.3.0 — 2015-09-29
- 0.2.0 — 2015-04-09
- 0.1.4 — 2014-10-17
- 0.1.3 — 2014-05-05
- 0.1.2 — 2014-04-27
- 0.1.1 — 2014-04-20
- 0.1.0 — 2014-04-20
- 0.0.2 — 2014-04-20
- 0.0.1 — 2014-04-20
- 0.0.0 — 2014-04-19

## 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 to
  `Infinity`).
- `nSample`, the number of rows to use to comput the
  [columns](http://www.w3.org/TR/tabular-metadata/#columns)
  description. (defaults to `Infinity`)


## Tests

```npm test```

---
_Source: https://npm.io/package/preview-tabular-data · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
