Skip to content

CardDAV vCard Export Plugin

mikedeboer edited this page Feb 24, 2013 · 1 revision

vCard Export Plugin

Introduction

The vCard export plugin allows you to export an entire addressbook, to a single .vcf file.

This plugin was added in jsDAV 0.3.0.

Setup

To use this plugin, simply add it to your server:

var jsCardDAV_VCFExportPlugin = require("./../lib/CardDAV/VCFExportPlugin");

// add the plugin class to the array of plugins when you boot the server:
jsDAV.createServer({
    node: nodes,
    baseUri: baseUri,
    authBackend: authBackend,
    realm: "jsDAV",
    plugins: [jsDAV_Auth_Plugin, jsDAV_Browser_Plugin, jsCardDAV_Plugin, jsDAVACL_Plugin, jsCardDAV_VCFExportPlugin]
}, 8000);

After this is added, you can generate these exports by finding a url to your addressbook, and adding ?export at the end of the url. This will automatically trigger a download.

Based on the original document at http://code.google.com/p/sabredav/wiki/

Clone this wiki locally