# harvest-iso

> UNIX command line utility for mapping ISO.xml to CINERGI JSON.

Latest version **0.0.0** (published 2014-10-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install harvest-iso
pnpm add harvest-iso
yarn add harvest-iso
bun add harvest-iso
```

Provides the command `xml-to-cinergi`.

## 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.0 |
| Published | 2014-10-30 |
| First published | 2014-10-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Adrian Sonnenschein |
| Maintainers | asonnenschein |

## Links

- npm: https://www.npmjs.com/package/harvest-iso
- Repository: https://github.com/CINERGI/enhancers
- Issues: https://github.com/CINERGI/enhancers/issues
- npm.io page: https://npm.io/package/harvest-iso

## Dependencies (4)

- [async](https://npm.io/package/async.md) 0.9.0
- [libxmljs](https://npm.io/package/libxmljs.md) 0.12.0
- [xml2json](https://npm.io/package/xml2json.md) 0.5.1
- [commander](https://npm.io/package/commander.md) 2.3.0

## Recent versions

- 0.0.0 (latest) — 2014-10-30

## README

### ISO to CINERGI Schema Command-line Utility

Enhancer for transforming ISO.xml and ISO.json into CINERGI federation schema
json.  Inputs can be text files or streams of xml and json.  Outputs can be
text files or streams of json.

#### Base Requirements
* [Node.js v0.10.29 64-bit](http://nodejs.org/)
* [npmjs v1.4.16](https://www.npmjs.org/)

#### Installation
```
$ git clone https://github.com/CINERGI/enhancers.git
$ cd enhancers/harvest-iso
$ npm install -g
```

#### Tests
Run the tests with [mocha](https://visionmedia.github.io/mocha/):
```
$ npm install -g mocha
$ cd enhancers/harvest-iso
$ mocha test
```

#### Usage
Once installed, command-line kung-fu can be done via `xml-to-cinergi`:
```
$ xml-to-cinergi --help

  Usage: xml-to-cinergi [options]
  
  Options:
    -i, --input [value]   Text file containing data to be transformed
    -o, --output [value]  Text file to write transformed data out to
    -s, --stream          Operate on a stream of text
    -h, --hydro10         Use transformation method for Hydro10 metadata
    -c, --czo             Use transformation method for CZO metadata

  Examples:

    Operate on text files --
    $ xml-to-cinergi -i test/sample-hydro10-iso.xml -o output.json -h

    Operate on streams and Bash pipes --
    $ cat test/sample-czo-iso.xml | iso-to-cinergi -s -c 
```

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