# jsreport-xlsx

> jsreport recipe rendering excels directly from open xml

Latest version **2.5.0** (published 2020-09-07) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.5.0 |
| Published | 2020-09-07 |
| First published | 2015-11-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/jsreport-xlsx) |
| Module format | CommonJS |
| Node | >=8.9 |
| Dependencies | 9 |
| Unpacked size | 121.7 KB |
| Known vulnerabilities | 0 (+5 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Jan Blaha |
| Maintainers | pofider, bjrmatos |
| Keywords | jsreport |

## Links

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

## Dependencies (9)

- [uuid](https://npm.io/package/uuid.md) 3.3.3
- [lodash](https://npm.io/package/lodash.md) 4.17.19
- [merge2](https://npm.io/package/merge2.md) 1.3.0
- [mkdirp](https://npm.io/package/mkdirp.md) 0.5.5
- [bluebird](https://npm.io/package/bluebird.md) 3.7.2
- [jsreport-office](https://npm.io/package/jsreport-office.md) 1.2.0
- [xml2js-preserve-spaces](https://npm.io/package/xml2js-preserve-spaces.md) 0.0.1
- [msexcel-builder-extended](https://npm.io/package/msexcel-builder-extended.md) 0.0.8
- [node.extend.without.arrays](https://npm.io/package/node.extend.without.arrays.md) 1.1.6

## Recent versions

- 2.5.0 (latest) — 2020-09-07
- 1.2.0-beta (beta) — 2017-02-13
- 1.1.9 (next) — 2017-02-10
- 2.4.0 — 2020-07-17
- 2.3.1 — 2020-05-20
- 2.3.0 — 2020-02-25
- 2.2.1 — 2019-10-09
- 2.2.0 — 2019-09-18
- 2.1.0 — 2019-09-02
- 2.0.10 — 2019-02-28
- 2.0.9 — 2018-12-28
- 2.0.8 — 2018-12-07
- 2.0.7 — 2018-12-07
- 2.0.6 — 2018-11-05
- 2.0.5 — 2018-11-03
- … 42 more at https://npm.io/package/jsreport-xlsx/versions

## README

# jsreport-xlsx

[![NPM Version](http://img.shields.io/npm/v/jsreport-xlsx.svg?style=flat-square)](https://npmjs.com/package/jsreport-xlsx)
[![Build Status](https://travis-ci.org/jsreport/jsreport-xlsx.png?branch=master)](https://travis-ci.org/jsreport/jsreport-xlsx)

> jsreport recipe which renders excel reports based on uploaded excel templates by modifying the xlsx source using predefined templating engine helpers

See the docs https://jsreport.net/learn/xlsx

## Installation

>npm install jsreport-xlsx

## jsreport-core

```js
var fs = require('fs')
var jsreport = require('jsreport-core')()
jsreport.use(require('jsreport-xlsx')())
jsreport.use(require('jsreport-handlebars')())

jsreport.init().then(function () {
  return jsreport.render({
    template: {
      recipe: 'xlsx',
      engine: 'handlebars',
      content: '{{{xlsxPrint}}}',
      xlsxTemplate: {
        content: fs.readFileSync('Book1.xlsx').toString('base64')
      }
    }
  }).then(function (report) {
    report.stream.pipe(fs.createWriteStream('out.xlsx'))
  })
})
```

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