Jabber Service Administration XEP-0133 library for node-xmpp.
With package manager npm:
npm install node-xmpp-serviceadmin
xmpp = require "node-xmpp"
ServiceAdmin = require "node-xmpp-serviceadmin"
# define the host
service = "example.org"
# define the JID that has the admin privileges
root = "[email protected]"
# creat the xmpp connection
comp = new xmpp.Component
jid : "mycomponent"
password : "secret"
host : "127.0.0.1"
port : "8888"
sa = new ServieAdmin root, comp, service
# creating a new user
sa.addUser "[email protected]", "secret", { name: "Der Weihnachtsmann" }, (err) ->
# changing a user password
sa.changeUserPassword "[email protected]", "newSecret", (err) ->
# delete a user
sa.deleteUser "[email protected]", (err) ->
jasmine-node --coffee spec/
node-xmpp-serviceadmin is licensed under the MIT-Licence (see LICENSE.txt)