# superagent-xml2jsparser

> an xml to jason parser for superagent

Latest version **0.1.1** (published 2014-05-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install superagent-xml2jsparser
pnpm add superagent-xml2jsparser
yarn add superagent-xml2jsparser
bun add superagent-xml2jsparser
```

## 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.1.1 |
| Published | 2014-05-14 |
| First published | 2014-05-14 |
| 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 | 2 |
| Author | Todd Geist |
| Maintainers | toddgeist |
| Keywords | node |

## Links

- npm: https://www.npmjs.com/package/superagent-xml2jsparser
- Repository: https://github.com/toddgeist/superagent-xml2jsparser
- Issues: https://github.com/toddgeist/superagent-xml2jsparser/issues
- npm.io page: https://npm.io/package/superagent-xml2jsparser

## Dependencies (1)

- [xml2js](https://npm.io/package/xml2js.md) ~0.4.2

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2014-05-14
- 0.1.0 — 2014-05-14

## README

superagent-xml2jsparser
=======================

a parser for [visionmedia/superagent](https://github.com/visionmedia/superagent) that converts XML to json. It uses [xml2js](https://github.com/Leonidas-from-XIV/node-xml2js)

## Installation

with npm

```js
npm install superagent-xml2jsparser
```

## Motivation

I needed to access an XML based API with superagent.  This seemed the simplest thing to do

## Usage

```js
request = require('superagent');
xml2jsParser = require('superagent-xml2jsparser');

request
    .get('http://api.openweathermap.org/data/2.5/weather?q=Los Angeles&mode=xml')
    .accept('xml')
    .parse(xml2jsParser) // add the parser function
    .end(function(err, res){
        console.log(res.body)
    })
```

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