Skip to content

andrewppace/vcard-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This simple library allows conversion of Vcard.0 text to JSON and JSON to Vcard3.0.

The library implents two functions, #parse and #generate.

#parse takes Vcard3.0 text and converts to JSON data
  For example:
    VCARD.parse("BEGIN:VCARD\r\nVERSION:3.0\r\nFN:Andrew Pace\r\nEND:VCARD");
  Returns:
    {fn: {name: "Andrew Pace"}}

#generate takes JSON data and converts to Vcard3.0 text
  For example:
    VCARD.generate({fn: {name: "Andrew Pace"}});
  Returns:
    VCARD.parse("BEGIN:VCARD\r\nVERSION:3.0\r\nFN:Andrew Pace\r\nEND:VCARD");

About

Converts Vcard3.0 to JSON and JSON to Vcard3.0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published