Socket
Book a DemoInstallSign in
Socket

xmlrpc-parser

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xmlrpc-parser

XML-RPC Parser

1.0.4
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

XML-RPC Parser

npm version npm downloads License

Platform independent XML-RPC parser

Installation

npm install xmlrpc-parser

Example

//
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 file for details

Keywords

xml

FAQs

Package last updated on 01 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.