# xml-objects

> Streaming wrapper around xml2js

Latest version **1.0.1** (published 2015-12-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install xml-objects
pnpm add xml-objects
yarn add xml-objects
bun add xml-objects
```

## 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.1 |
| Published | 2015-12-31 |
| First published | 2013-12-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Tim Hudson |
| Maintainers | timhudson |

## Links

- npm: https://www.npmjs.com/package/xml-objects
- Repository: https://github.com/timhudson/xml-objects
- Issues: https://github.com/timhudson/xml-objects/issues
- npm.io page: https://npm.io/package/xml-objects

## Dependencies (2)

- [xml2js](https://npm.io/package/xml2js.md) ^0.4.15
- [through2](https://npm.io/package/through2.md) ^2.0.0

## Recent versions

- 1.0.1 (latest) — 2015-12-31
- 1.0.0 — 2015-12-31
- 0.0.2 — 2015-10-24
- 0.0.1 — 2013-12-01

## README

# xml-objects

[![version](https://img.shields.io/travis/timhudson/xml-objects.svg?style=flat-square)](https://travis-ci.org/timhudson/xml-objects)
[![version](https://img.shields.io/npm/v/xml-objects.svg?style=flat-square)](https://www.npmjs.com/package/xml-objects)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
[![npm downloads](https://img.shields.io/npm/dm/xml-objects.svg?style=flat-square)](https://www.npmjs.com/package/xml-objects)

Streaming wrapper around xml2js

Pipe fully formed bits of xml to _xml-objects_ to parse into javascript objects. Works great with [xml-nodes](https://github.com/timhudson/xml-nodes).

## Install

With [npm](https://npmjs.org/) do:

```
npm install xml-objects
```

## Example

```javascript
var request = require('request');
var xmlNodes = require('xml-nodes');
var xmlObjects = require('xml-objects');

request('http://news.yahoo.com/rss/entertainment')
  .pipe(xmlNodes('item'))
  .pipe(xmlObjects({explicitRoot: false, explicitArray: false, mergeAttrs: true}))
  .on('data', function(data) {
    console.log(data.title);
  });
```

## License

MIT

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