# xlsx-export

> Streaming json to xlsx converter

Latest version **0.0.4** (published 2014-05-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install xlsx-export
pnpm add xlsx-export
yarn add xlsx-export
bun add xlsx-export
```

## 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.0.4 |
| Published | 2014-05-13 |
| First published | 2014-05-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Andrew Grachov |
| Maintainers | andrewgrachov |
| Keywords | excel, xlsxjson, json2xlsx, xlsx |

## Links

- npm: https://www.npmjs.com/package/xlsx-export
- Repository: https://github.com/AndrewGrachov/xlsx-export
- Issues: https://github.com/AndrewGrachov/xlsx-export/issues
- npm.io page: https://npm.io/package/xlsx-export

## Dependencies (3)

- [async](https://npm.io/package/async.md) ^0.8.0
- [node-zip](https://npm.io/package/node-zip.md) ^1.1.0
- [zip-stream](https://npm.io/package/zip-stream.md) ^0.3.3

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.0.4 (latest) — 2014-05-13
- 0.0.2 — 2014-05-12
- 0.0.1 — 2014-05-12
- 0.0.0 — 2014-05-12

## README

xlsx-export
===========

very basic node js streaming json -> xlsx converter

Based on **functionscope** https://www.npmjs.org/package/excel-export


**test**

```
npm test
```

**Usage**

```

var XlsxExport = require('xlsx-export');
var collection = mongo.collection('someCollection');

var options = {
	map: {
		'date': 'date',
		'number': 'number',
		'name': 'string'
	},
	headers: [
				{width: 15, caption: "Awesome Date"},
				{width: 25, caption: 'Super awesome Number'},
				{width: 40, caption: 'Super Name'}
			],
	stream: collection.stream()
};

var packer = new XlsxExport(options);
var stream = packer.pipe(fs.createWriteStream('./test_spread_sheet.xlsx'));

//todo: enjoy!

```

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