A jCard to vCard converter with both a CLI and a programmatic module interface.
This is still very much a WIP project and is not feature complete.
$ yarn global add jcard-to-vcard # Or alternatively: `npm install --global jcard-to-vcard`
'use strict';
const fs = require('fs');
const jcardToVcard = require('jcard-to-vcard');
let source = fs.readFileSync('jcard.json').toString();
let jcard = JSON.parse(source);
let vcard = jcardToVcard(jcard);
$ jcard-to-vcard jcard.json > vcard.vcf
$ yarn test # Or alternatively: `npm test`
- Property Parsing
-
ADR
-
ANNIVERSARY
-
BDAY
-
BEGIN
-
CALADRURI
-
CALURI
-
CATEGORIES
-
CLIENTPIDMAP
-
EMAIL
-
END
-
FBURL
-
FN
-
GENDER
-
GEO
-
IMPP
-
KEY
-
KIND
-
LANG
-
LOGO
-
MEMBER
-
N
-
NICKNAME
-
NOTE
-
ORG
-
PHOTO
-
PRODID
-
RELATED
-
REV
-
ROLE
-
SOUND
-
SOURCE
-
TEL
-
TITLE
-
TZ
-
UID
-
URL
-
VERSION
-
XML
-
- Parameter Parsing
-
ALTID
-
CALSCALE
-
GEO
-
LANGUAGE
-
MEDIATYPE
-
PID
-
PREF
-
SORT-AS
-
TYPE
-
TZ
-
VALUE
-
- Refactor Codebase
- Augmented BNF for Syntax Specifications: ABNF
- vCard Format Specification
- Parameter Value Encoding in iCalendar and vCard
- jCard: The JSON Format for vCard
- vCard Elements (IANA Protocol Registry)
This project is licensed under the terms of the MIT License (Expat). You can view the full license here.