1.2.0 • Published 4 years ago

@xmpp-plugins/vcard v1.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

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

1.2.0

4 years ago

1.1.0

5 years ago

1.0.0

5 years ago