lightweight javascript library to generate vCards (.vcf)
- Add Logo imagedata
- Add Photo imagedata
npm i vcardi
import VCARDI from '@sikka/vcardi'
let myContactInfo = {
prefix: "Mr.",
first_name: "Zakher",
middle_name: "Mahmoud",
last_name: "Masri",
suffix: "The First",
nickname: "Zak",
organization: "Sikka",
department: "Admin",
role: "Chief Executive Officer",
title: "CEO",
notes: "here are the notes",
dates: [{
label: 'Birthday',
text: '19930118'
},{
label: 'Birthday',
text: '19930118'
},
{
label: 'Anniversary',
text: '20220101'
}],
numbers: [
{
label: "Work",
text: "050025505050",
},
{
label: "Office",
text: "050025505050",
},
{
label: "Fax",
text: "050025505050",
},
],
emails: [
{
label: "Work",
text: "[email protected]",
},
{
label: "Office",
text: "[email protected]",
},
{
label: "Crypto",
text: "[email protected]",
},
],
socials: [
{
label: "Twitter",
text: "https://twitter.com/zaaakher",
},
{
label: "Instagram",
text: "https://instagram.com/zaaakher",
},
{
label: 'custom',
text: 'https://something.com'
}
],
addresses: [
{
label: "HomeLabel",
text: "3489 Qsis Bin haa, Dammam ,Saudi Arabia",
}
],
}
let myVCard = VCARDI.createVCard(myContactInfo)
To contribute, clone the repository and edit /index.js
git clone [email protected]:sikka-software/vcardi.git
cd vcardi