{"id":18925555,"url":"https://github.com/nightmachinery/vcard-to-json","last_synced_at":"2026-03-14T15:30:17.496Z","repository":{"id":46379475,"uuid":"414149671","full_name":"NightMachinery/vcard-to-json","owner":"NightMachinery","description":"Converts vCard .VCF files into JSON.","archived":false,"fork":false,"pushed_at":"2023-12-15T11:49:52.000Z","size":25,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T17:48:02.936Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NightMachinery.png","metadata":{"files":{"readme":"readme.org","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-06T09:32:34.000Z","updated_at":"2022-06-15T11:16:28.000Z","dependencies_parsed_at":"2024-11-08T11:12:26.940Z","dependency_job_id":"94a10d14-e6c3-4d14-8fa1-249763b9842e","html_url":"https://github.com/NightMachinery/vcard-to-json","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightMachinery%2Fvcard-to-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightMachinery%2Fvcard-to-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightMachinery%2Fvcard-to-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightMachinery%2Fvcard-to-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NightMachinery","download_url":"https://codeload.github.com/NightMachinery/vcard-to-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239921844,"owners_count":19718844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T11:12:19.316Z","updated_at":"2026-03-14T15:30:17.368Z","avatar_url":"https://github.com/NightMachinery.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+TITLE: vcard-to-json\n\n=vcard-to-json= converts vCard .VCF files into human-readable JSON. Reversibility of this transformation is not a goal.\n\nThis program supports only a limited set of vCard properties. You can open issues to request specific properties added. Please attach an example vCard entity that uses the said properties.\n\n* build\nYou have to have Clojure installed and =clj= in your path.\n\n#+begin_example zsh\nclj -T:build rebuild-uber\n#: outputs in ./target/\n#+end_example\n\n* usage\n#+begin_example zsh\ncat my_vcard |\n  java -jar ./target/vcard-to-json*.jar\n#+end_example\n\nOr you can use it without building the uberjar:\n#+begin_example zsh\ncat my_vcard |\n  clj -X NightMachinery.vcard-to-json/-main\n#+end_example\n\n** examples\n#+begin_src bsh.dash :results verbatim :exports both :wrap results\necho  \"BEGIN:VCARD\nVERSION:3.0\nPRODID:-//Apple Inc.//macOS 11.2.1//EN\nN:;Peter Black;;;\nFN:Peter Black\nTEL;type=CELL;type=VOICE;type=pref:+98 413 999 4697\nEMAIL;type=INTERNET;type=HOME;type=pref:fake_email@live.com\nitem1.ADR;type=HOME;type=pref:;;The Dark Street;;;;Neverland\nitem1.X-ABADR:ir\nitem2.X-ABRELATEDNAMES;type=pref:Tatsuya Smith\nitem2.X-ABLabel:_$!\u003cFriend\u003e!$_\nNOTE:some notes here\nBDAY:1958-11-14\nEND:VCARD\n\" | clj -X NightMachinery.vcard-to-json/-main |\n    jq . #: to prettify the output\n#+end_src\n\n#+begin_example json\n[\n  {\n    \"names-formatted\": [\n      \"Peter Black\"\n    ],\n    \"names-given\": [\n      \"Peter Black\"\n    ],\n    \"telephone-numbers\": [\n      {\n        \"types\": [\n          \"cell\",\n          \"voice\",\n          \"pref\"\n        ],\n        \"text\": \"+98 413 999 4697\"\n      }\n    ],\n    \"emails\": [\n      {\n        \"types\": [\n          \"internet\",\n          \"home\",\n          \"pref\"\n        ],\n        \"value\": \"fake_email@live.com\"\n      }\n    ],\n    \"addresses\": [\n      {\n        \"types\": [\n          \"home\",\n          \"pref\"\n        ],\n        \"countries\": [\n          \"Neverland\"\n        ],\n        \"streetAddresses\": [\n          \"The Dark Street\"\n        ]\n      }\n    ],\n    \"birthdays\": [\n      \"1958-11-13T20:30:00Z\"\n    ],\n    \"notes\": [\n      \"some notes here\"\n    ]\n  }\n]\n#+end_example\n\n* issues\n\n* related\n** [[https://github.com/mangstadt/ez-vcard/wiki/jCard][jCard · mangstadt/ez-vcard Wiki · GitHub]]\n\n** [[https://github.com/mangstadt/ez-vcard/issues/78][mangstadt/ez-vcard#78 Write JSON-LD]]\n\n** [[https://github.com/mangstadt/ez-vcard/issues/77][mangstadt/ez-vcard#77 How to convert standard vCard into first-class JSON?]]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnightmachinery%2Fvcard-to-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnightmachinery%2Fvcard-to-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnightmachinery%2Fvcard-to-json/lists"}