# largexml2json

> convert large xml to json

Latest version **1.0.5** (published 2021-12-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install largexml2json
pnpm add largexml2json
yarn add largexml2json
bun add largexml2json
```

Provides the command `largexml2json`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2021-12-24 |
| First published | 2021-12-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 9.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | sameer17cs |
| Maintainers | sameer17cs |
| Keywords | large, xml, json, convert, streaming |

## Links

- npm: https://www.npmjs.com/package/largexml2json
- Repository: https://github.com/sameer17cs/largexml2json
- Homepage: https://github.com/sameer17cs/largexml2json#readme
- Issues: https://github.com/sameer17cs/largexml2json/issues
- npm.io page: https://npm.io/package/largexml2json

## Dependencies (2)

- [flags](https://npm.io/package/flags.md) ^0.1.3
- [xml-stream](https://npm.io/package/xml-stream.md) ^0.4.5

## 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

- 1.0.5 (latest) — 2021-12-24
- 1.0.4 — 2021-12-24
- 1.0.2 — 2021-12-24

## README

# largexml2json

## Description
Command line utility to convert large xml to json line output.
  - command line tool
  - Feature to extract nested xml tags as json
  - https://www.npmjs.com/package/largexml2json
  - https://github.com/sameer17cs/largexml2json


### Installation

Requires [Node.js](https://nodejs.org/) to run.

```sh
$ npm install largexml2json
$ npm install largexml2json -g
```

### Use it as command line
```sh
$ cd /path/to/library
$ npm link
```

#### Building for source
For production release:
```sh
$ git clone https://github.com/sameer17cs/largexml2json
$ cd largexml2json
$ npm install
```

### Options

  - input: ```String```
      - mandatory
      - filepath of input xml

  - output: ```String```
      - mandatory
      - filepath of output json
      - output as json lines

  - tagtoextract: ```String```
      - mandatory
      - name of xml tag/nested-tag to extract as json
      - content of selected tags will be converted to json line
      - nested content are stored in json field ```child```
    
  - limit: ```Number```
      - Optional
      - max output buffer size
      - default: 10
      - For higher limit, pass  --max-old-space-size args to node

### Example

  - largexml2json --input ./test/sample.xml --output ./test/sample.json --tagtoextract book
  - largexml2json --input ./test/sample.xml --output ./test/sample.json --tagtoextract book --limit 100

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