# vcard-parser

> Simple vCard parser

Latest version **1.0.0** (published 2018-08-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install vcard-parser
pnpm add vcard-parser
yarn add vcard-parser
bun add vcard-parser
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-08-14 |
| First published | 2016-03-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 117.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 43 |
| Author | Aleksandr Kitov |
| Maintainers | heymdall |

## Links

- npm: https://www.npmjs.com/package/vcard-parser
- Repository: https://github.com/Heymdall/vcard
- Homepage: https://github.com/Heymdall/vcard#readme
- Issues: https://github.com/Heymdall/vcard/issues
- npm.io page: https://npm.io/package/vcard-parser

## Recent versions

- 1.0.0 (latest) — 2018-08-14
- 0.3.0 — 2018-02-19
- 0.2.7 — 2016-12-01
- 0.2.6 — 2016-09-15
- 0.2.4 — 2016-03-10

## README

vcard
===

## Introduction
vcard allow you to parse vCard data into js object and convert js object into vCard data.
It can work both in browser and in node.

## Installation

Using npm:
```sh
npm install vcard-parser
```

## Example of usage:
```javascript
var vCard = require('vcard-parser');
var raw = 'BEGIN:VCARD\r\n' +
          'FN:Forrest Gump\r\n' +
          'N:Gump;Forrest;;Mr.;\r\n' +
          'TEL;TYPE=HOME:78884545247\r\n' +
          'END:VCARD';
var card = vCard.parse(raw);

expect(card.fn).toEqual([
    {value: 'Forrest Gump'}
]);
expect(card.n).toEqual([{
    value: [
        'Gump', 'Forrest', '', 'Mr.', ''
    ]
}]);
expect(card.tel).toEqual([
    {value: '78884545247', meta: {type: ['HOME']}}
]);

var generated = vCard.generate(card);

expect(generated).toEqual(raw);
```

---
_Source: https://npm.io/package/vcard-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
