New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@xmpp-plugins/vcard

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xmpp-plugins/vcard

vcard plugin for xmpp.js

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
2
Created
Source

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

Keywords

XMPP

FAQs

Package last updated on 14 Dec 2019

Did you know?

Socket

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.

Install

Related posts