Giter Club home page Giter Club logo

csv3vcard-transformer's Introduction

CSV to vCard Transformer

This is a small tool which transforms a simple csv file into a serie of vcard files.

The csv file must contain the following columns:

  • First Name
  • Last Name
  • Title
  • E-mail Address
  • E-mail 2 Address
  • E-mail 3 Address
  • Home Phone
  • Home Phone 2
  • Business Phone
  • Business Phone 2
  • Mobile Phone
  • Home Street
  • Home City
  • Home State
  • Home Postal Code
  • Home Country/Region
  • Birthday

The file must be seperated by real commas. The birthday must be formatted in YYY-MM-DD.

Prerequisites

For the installation, please have Maven and JDK 11 installed.

Get started

Clone the repository and compile it with maven.

Then, execute the jar with the parameter -i as the input file.

Example:

java -jar target/transformer-0.0.1-SNAPSHOT.jar -i "contacts.csv"  

Example

The csv file might look like:

First Name,Last Name,Title,E-mail Address,E-mail 2 Address,E-mail 3 Address,Home Phone,Home Phone 2,Business Phone,Business Phone 2,Mobile Phone,Home Street,Home City,Home State,Home Postal Code,Home Country/Region,Birthday
Max,Mustermann,Dr.,[email protected],[email protected],[email protected],00 49 123456789,00 49 123456789,00 49 123456789,00 49 123456789,00 49 123456789,Hauptsraße 14,Berlin,Berlin,12345,Deutschland,1970-01-01

The resulting vcard file looks like:

BEGIN:VCARD
VERSION:3.0
PRODID:ez-vcard 0.11.3
N:Mustermann;Max;;Dr.
BDAY:1970-01-01
EMAIL:[email protected]
EMAIL:[email protected]
EMAIL:[email protected]
TEL;TYPE=home:00 49 123456789
TEL;TYPE=home:00 49 123456789
TEL;TYPE=work:00 49 123456789
TEL;TYPE=work:00 49 123456789
TEL;TYPE=cell:00 49 123456789
ADR;TYPE=home:;;Hauptsraße 14;Berlin;;12345;Deutschland
UID:urn:uuid:34632400-a918-4578-8c68-f5f589f2e2c9
REV:2022-06-15T21:27:14Z
END:VCARD

You might import this file directly into to your contacts app, "Apple Contacts" for example.

csv3vcard-transformer's People

Contributors

jonasrotert avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.