Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Latest commit

 

History

History
46 lines (30 loc) · 720 Bytes

README.md

File metadata and controls

46 lines (30 loc) · 720 Bytes

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