# xmlrpc-parser

> XML-RPC Parser

Latest version **1.0.4** (published 2024-05-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install xmlrpc-parser
pnpm add xmlrpc-parser
yarn add xmlrpc-parser
bun add xmlrpc-parser
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2024-05-01 |
| First published | 2019-01-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 15.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Nathan Cartwright |
| Maintainers | leoz |
| Keywords | xml, xmlrpc, rpc, parser |

## Links

- npm: https://www.npmjs.com/package/xmlrpc-parser
- Repository: https://github.com/leoz/xrpc
- Homepage: https://github.com/leoz/xrpc#readme
- Issues: https://github.com/leoz/xrpc/issues
- npm.io page: https://npm.io/package/xmlrpc-parser

## Dependencies (2)

- [sax-parser](https://npm.io/package/sax-parser.md) ^2.0.3
- [utf8-base64](https://npm.io/package/utf8-base64.md) ^0.1.2

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2024-05-01
- 1.0.3 — 2022-12-07
- 1.0.2 — 2020-03-11
- 1.0.1 — 2020-03-11
- 1.0.0 — 2019-01-09

## README

# XML-RPC Parser

[![npm version](https://badge.fury.io/js/xmlrpc-parser.svg)](https://badge.fury.io/js/xmlrpc-parser) [![npm downloads](https://img.shields.io/npm/dt/xmlrpc-parser.svg)](https://www.npmjs.com/package/xmlrpc-parser)
[![License](https://img.shields.io/badge/License-MIT-brightgreen.svg)](LICENSE)

Platform independent XML-RPC parser

## Installation

```bash
npm install xmlrpc-parser
```

## Example

```javascript
//
import fetch from "cross-fetch";
import { XmlRpcMessage, XmlRpcResponse } from "xmlrpc-parser";
//
const method = "examples.getStateName";
const params = 23;
const message = new XmlRpcMessage(method, [params]);
const input = message.xml();
const URL = "http://betty.userland.com/RPC2";
//
const res = await fetch(URL, { method: "post", body: input });
const xml = await res.text();
//
const response = new XmlRpcResponse();
const result = await response.parse(xml);
//
console.log(result);
```

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

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