/node-jid

Parse and handle XMPP/Jabber Identifiers

Primary LanguageJavaScript

JID

Parse and handle XMPP/Jabber Identifiers.

Build Status Dependency Status

Usage

var JID = require("jid");

var myJID = new JID("foo@bar.baz.tld/bla");

myJID.local     // "foo"
myJID.domain    // "bar.baz.tld"
myJID.resource  // "bla"

myJID.toString()        // "foo@bar.baz.tld/bla"
myJID.bare().toString() // "foo@bar.baz.tld"

Install

npm i --save jid

Test

npm t

Build

npm run compile

Pack for browser usage

npm run pack