vcard-json

Easily and smartly convert vcard file(s) to a JSON object.

Usage no npm install needed!

<script type="module">
  import vcardJson from 'https://cdn.skypack.dev/vcard-json';
</script>

README

Easily and smartly convert vcard file(s) to a JSON object for node.

var vcard = require('vcard-json');

vcard.parseVcardFile('some-contact.vcf', function(err, data){
  if(err) console.log('oops:'+ err);
  else {
    console.log('should be good to go:\n'+ JSON.stringify(data));    
  }
});

Installation

$ npm install vcard-json