Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
node-xmpp-caps
Advanced tools
Readme
XEP-0115 entity capabilities for node-xmpp
$ npm install node-xmpp-caps
c
nodevar caps = require('node-xmpp-caps');
var c = new caps.Caps('http://code.google.com/p/exodus');
c.addIdentity('client', 'pc', 'Exodus 0.9.1');
c.addFeature('http://jabber.org/protocol/caps');
c.addFeature('http://jabber.org/protocol/disco#info');
c.addFeature('http://jabber.org/protocol/disco#items');
c.addFeature('http://jabber.org/protocol/muc');
// creates an ltx.Element instance containing this:
//
// <c xmlns='http://jabber.org/protocol/caps'
// hash='sha-1'
// node='http://code.google.com/p/exodus'
// ver='QgayPKawpkPSDYmwT/WM94uAlu0='/>
//
c.toCapsNode();
query
nodevar caps = require('node-xmpp-caps');
var c = new caps.Caps('http://code.google.com/p/exodus');
c.addIdentity('client', 'pc', 'Exodus 0.9.1');
c.addFeature('http://jabber.org/protocol/caps');
c.addFeature('http://jabber.org/protocol/disco#info');
c.addFeature('http://jabber.org/protocol/disco#items');
c.addFeature('http://jabber.org/protocol/muc');
// creates an ltx.Element instance containing this:
//
// <query xmlns='http://jabber.org/protocol/disco#info'
// node='http://code.google.com/p/exodus#QgayPKawpkPSDYmwT/WM94uAlu0='>
// <identity category='client' name='Exodus 0.9.1' type='pc'/>
// <feature var='http://jabber.org/protocol/caps'/>
// <feature var='http://jabber.org/protocol/disco#info'/>
// <feature var='http://jabber.org/protocol/disco#items'/>
// <feature var='http://jabber.org/protocol/muc'/>
// </query>
//
c.toQueryNode();
Caps
-Instance out of a query
node (ltx.Element
)var c = caps.fromQueryNode(queryNode);
We're happy to get contributions. If you do so, please submit a PR which has running tests in it and that jshint doesn't complain anymore.
Thanks!
MIT - See LICENSE
FAQs
XEP-0115 entity capabilities for node-xmpp
The npm package node-xmpp-caps receives a total of 7 weekly downloads. As such, node-xmpp-caps popularity was classified as not popular.
We found that node-xmpp-caps demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.