@sikka/vcardi
v1.2.6
Published
vCard Generator
Downloads
5
Readme
vCardi
lightweight javascript library to generate vCards (.vcf)
Upcoming updates
- [ ] Add Logo imagedata
- [ ] Add Photo imagedata
Getting Started
npm i vcardi
How to use
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)
Contribute
To contribute, clone the repository and edit /index.js
git clone [email protected]:sikka-software/vcardi.git
cd vcardi