@xmpp-plugins/vcard

1.2.0 • Public • Published

vcard

This plugin allow retrieving and updating vcards.

Install

npm install @xmpp-plugins/vcard

Usage

import { client } from "@xmpp/client"
import setupVcard from "@xmpp-plugins/vcard"

const xmpp = client({service: 'wss://xmpp.example.com'})
const vcardPlugin = setupVcard(xmpp)

// Update our vcard
await vcardPlugin.set({
  FN: 'John',
  N: {
    FAMILY: 'Doe',
    GIVEN: 'John'
  }
})

// Retrieve our current vcard and show it on the console
console.log(await vcardPlugin.get())

References

XEP-0054: vcard-temp

Readme

Keywords

Package Sidebar

Install

npm i @xmpp-plugins/vcard

Weekly Downloads

0

Version

1.2.0

License

ISC

Unpacked Size

194 kB

Total Files

11

Last publish

Collaborators

  • ggozad
  • wichert