0.9.3 • Published 4 years ago

@xmpp-infister/uri v0.9.3

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

URI

XMPP URIs for JavaScript

Only parsing is supported at the moment.

Install

npm install @xmpp-infister/uri

Usage

const URI = require('@xmpp-infister/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

0.9.3

4 years ago

0.9.2

4 years ago

0.9.1

4 years ago

0.9.0

4 years ago

0.8.0

4 years ago