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

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("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