jcard-to-vcard

0.2.0 • Public • Published

jcard-to-vcard

npm Version GitHub License Build Status

A jCard to vCard converter with both a CLI and a programmatic module interface.

Heads Up!

This is still very much a WIP project and is not feature complete.

Install

$ yarn global add jcard-to-vcard # Or alternatively: `npm install --global jcard-to-vcard`

Usage

Programmatically

'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);

CLI

$ jcard-to-vcard jcard.json > vcard.vcf

Testing

$ yarn test # Or alternatively: `npm test`

To-Do

  • [ ] Property Parsing
    • [x] ADR
    • [x] ANNIVERSARY
    • [x] BDAY
    • [x] BEGIN
    • [x] CALADRURI
    • [x] CALURI
    • [x] CATEGORIES
    • [ ] CLIENTPIDMAP
    • [x] EMAIL
    • [x] END
    • [ ] FBURL
    • [x] FN
    • [x] GENDER
    • [ ] GEO
    • [x] IMPP
    • [x] KEY
    • [x] KIND
    • [x] LANG
    • [ ] LOGO
    • [ ] MEMBER
    • [x] N
    • [x] NICKNAME
    • [x] NOTE
    • [x] ORG
    • [x] PHOTO
    • [x] PRODID
    • [x] RELATED
    • [x] REV
    • [x] ROLE
    • [ ] SOUND
    • [x] SOURCE
    • [x] TEL
    • [x] TITLE
    • [x] TZ
    • [ ] UID
    • [x] URL
    • [ ] VERSION
    • [ ] XML
  • [ ] Parameter Parsing
    • [ ] ALTID
    • [ ] CALSCALE
    • [ ] GEO
    • [ ] LANGUAGE
    • [ ] MEDIATYPE
    • [ ] PID
    • [ ] PREF
    • [ ] SORT-AS
    • [ ] TYPE
    • [ ] TZ
    • [ ] VALUE
  • [ ] Refactor Codebase

Reference

License

This project is licensed under the terms of the MIT License (Expat). You can view the full license here.

Package Sidebar

Install

npm i jcard-to-vcard

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

11.9 kB

Total Files

13

Last publish

Collaborators

  • radioactivehamster