Newsworthy Presidential Mistakes
    Wondering what’s next for npm?Check out our public roadmap! »

    xmlrpc-serialization

    2.0.0 • Public • Published

    XmlRPC serialization

    XmlRPC decode and stringify serialization functions

    This package provides helper functions to work with XML-RPC messages format, with 100% tests code coverage. It doesn't provides any actual processing of the messages themselves, if you need that, then use @piranna/rpc instead.

    API

    decode({childNodes, nodeName})

    Decode a XML-RPC message provided as a XMLDocument object. It returns a plain object with fields method and params for method calls, or error and result for method responses.

    stringify({error, method, params, result})

    Serialize a RPC message provided as a plain object with fields method and params for method calls, or error and result for method responses. It returns a minimized XML string.

    Install

    npm i xmlrpc-serialization

    DownloadsWeekly Downloads

    3

    Version

    2.0.0

    License

    ISC

    Unpacked Size

    7.9 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar