All Projects → mxstbr → create-vcard

mxstbr / create-vcard

Licence: MIT license
Create a vCard from an object. Simple wrapper around vcards-js.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to create-vcard

SchemaMapper
A .NET class library that allows you to import data from different sources into a unified destination
Stars: ✭ 41 (+215.38%)
Mutual labels:  vcard
vcard-creator
A JavaScript vCard creator library for both Node.js and the web
Stars: ✭ 17 (+30.77%)
Mutual labels:  vcard
calcardbackup
calcardbackup: moved to https://codeberg.org/BernieO/calcardbackup
Stars: ✭ 67 (+415.38%)
Mutual labels:  vcard
DEVGUIDE
CalConnect project to provide documentation on Calendaring and related issues.
Stars: ✭ 17 (+30.77%)
Mutual labels:  vcard
QRCode-Generator-PHP-Class
🚀 QRCode PHP class (library). QR Code Generator using vCard 4.0 and the Google Chart API
Stars: ✭ 91 (+600%)
Mutual labels:  vcard
go-vcard
A Go library to parse and format vCard
Stars: ✭ 87 (+569.23%)
Mutual labels:  vcard
vcard2to3
Convert vcards from version 2.1 to version 3.0
Stars: ✭ 135 (+938.46%)
Mutual labels:  vcard
laravel-vcard
A fluent builder class for vCard files.
Stars: ✭ 29 (+123.08%)
Mutual labels:  vcard
csv2vcf
🔧 Simple script in python to convert CSV files to VCF
Stars: ✭ 66 (+407.69%)
Mutual labels:  vcard
tsdav
WebDAV, CALDAV, and CARDDAV client for Nodejs and the Browser
Stars: ✭ 33 (+153.85%)
Mutual labels:  vcard
vcard-generator
VCard v4.0 rfc6350 compliant generator from JSON.
Stars: ✭ 15 (+15.38%)
Mutual labels:  vcard
doublecontact
Offline DE-independent Qt-based contact manager primarily for phonebooks editing/merging. Beta.
Stars: ✭ 40 (+207.69%)
Mutual labels:  vcard

create-vcard

Create a vCard from an object. Simple wrapper around vcards-js.

Installation

npm i create-vcard

Usage

import createVCard from 'create-vcard';

const card = createVCard({
  firstName: 'Max',
  lastName: 'Stoiber'
});

console.log(card.getFormattedString());

This will log the following:

BEGIN:VCARD
VERSION:3.0
FN;CHARSET=UTF-8:Max Stoiber
N;CHARSET=UTF-8:Stoiber;Max;;;
REV=2017-10-28T15:26:54+02:00
END:VCARD

Valid properties

See src/index.js for a list of all the valid properties.

Methods

See vcards-js for documentation of how to use the returned vCard. (this module returns a vcards-js instance)

The most useful method is card.getFormattedString() as shown above.

License

Licensed under the MIT License, Copyright ©️ 2017 Maximilian Stoiber. See LICENSE.md for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].