# saxon-stream2

> simple saxon transform stream wrapper using through2

Latest version **0.0.1** (published 2014-04-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install saxon-stream2
pnpm add saxon-stream2
yarn add saxon-stream2
bun add saxon-stream2
```

## 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.1 |
| Published | 2014-04-10 |
| First published | 2014-04-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | nbqx |
| Maintainers | nbqx |
| Keywords | java, saxon, xslt, stream |

## Links

- npm: https://www.npmjs.com/package/saxon-stream2
- Repository: https://github.com/nbqx/saxon-stream2
- Issues: https://github.com/nbqx/saxon-stream2/issues
- npm.io page: https://npm.io/package/saxon-stream2

## Dependencies (2)

- [through2](https://npm.io/package/through2.md) ^0.4.1
- [temporary](https://npm.io/package/temporary.md) 0.0.8

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2014-04-10

## README

## saxon-stream2

simple saxon transform stream wrapper using [through2](https://github.com/rvagg/through2)

## Usage

    $ npm install saxon-stream2

```js
var fs = require('fs');
var saxon = require('saxon-stream2');

var jarPath = __dirname+'/vendor/saxon9he.jar';
var xmlPath = __dirname+'/test/fixtures/test.xml';
var xslPath = __dirname+'/test/fixtures/test.xsl';

var outputPath = __dirname+'/out.txt';
var xslt = saxon(jarPath,xslPath,{timeout:5000});
xslt.on('error',function(err){
  console.log(err);
});

fs.createReadStream(xmlPath,{encoding:'utf-8'}).pipe(
  xslt
).pipe(fs.createWriteStream(outputPath));

// or
fs.createReadStream(xmlPath,{encoding:'utf-8'}).pipe(
  xslt
).on('data',function(cont){
  console.log(cont);
});
```

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