# co-xml2js

> node-xml2js with co

Latest version **1.0.0** (published 2016-04-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install co-xml2js
pnpm add co-xml2js
yarn add co-xml2js
bun add co-xml2js
```

## 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.0 |
| Published | 2016-04-30 |
| First published | 2016-04-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | lext |
| Maintainers | lext |
| Keywords | co-node-xml2js, xml2js, co |

## Links

- npm: https://www.npmjs.com/package/co-xml2js
- Repository: https://github.com/lext-7/co-node-xml2js
- Homepage: https://github.com/lext-7/co-node-xml2js#readme
- Issues: https://github.com/lext-7/co-node-xml2js/issues
- npm.io page: https://npm.io/package/co-xml2js

## Dependencies (1)

- [xml2js](https://npm.io/package/xml2js.md) ^0.4.16

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads
- [datasets-fi-postalcodes](https://npm.io/package/datasets-fi-postalcodes.md) — 1.1K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-04-30

## README

co-node-xml2js
===========

[node-xml2js](https://github.com/Leonidas-from-XIV/node-xml2js) with co


Usage
=====
install from npm

```
npm install co-xml2js
```

```javascript
import xml2js from "xml2js";
import co from "co";

co(function *() {

    var xml = new xml2js.Builder().buildObject({
        xml: {
            div: "text"
        }
    });

    var json;

    // parse xml
    json = yield xml2js.parseString(xml);
    // or
    var parser = new xml2js.Parser(/*your options*/);
    json = yield parser.parseString(xml);

});

```

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