@hallparty/xmpp-uri

0.12.0 • Public • Published

URI

XMPP URIs for JavaScript

Only parsing is supported at the moment.

Install

npm install @hallparty/xmpp-uri

Usage

const URI = require('@hallparty/xmpp-uri')

URI.parse('xmpp://guest@example.com/support@example.com/truc?message;subject=Hello%20World')

{
  authority: jid('guest@example.com'), // see https://github.com/xmppjs/xmpp.js/tree/master/packages/jid
  path: jid('support@example.com/truc'), // see https://github.com/xmppjs/xmpp.js/tree/master/packages/jid
  query: {
    type: 'message',
    params: {
      subject: 'Hello World',
    },
  },
}

References

Readme

Keywords

Package Sidebar

Install

npm i @hallparty/xmpp-uri

Weekly Downloads

0

Version

0.12.0

License

ISC

Unpacked Size

3.75 kB

Total Files

4

Last publish

Collaborators

  • hallparty