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

Parse and handle XMPP/Jabber Identifiers

Notifications You must be signed in to change notification settings

flosse/node-jid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JID

Parse and handle XMPP/Jabber Identifiers.

Build Status Dependency Status

Usage

var JID = require("jid");

var myJID = new JID("[email protected]/bla");

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

myJID.toString()        // "[email protected]/bla"
myJID.bare().toString() // "[email protected]"

Install

npm i --save jid

Test

npm t

Build

npm run compile

Pack for browser usage

npm run pack