QR code and vCard generations =============================
npm install qr-code-and-vcardQR code and vCard generations
=============================
This module allows you to generate qr code and create vCard contact. Module support cyrillic (utf-8)
* download
* Loader supports
* methods
* optionsqr
* optionsvcard
* example
sh
$ bower install qr-code-and-vcard --save;
$ git clone https://github.com/konstantin-nizhinskiy/qr-code-and-vcard.git;
`Loader supports
* AMD
* CommonJSMethods
Method | Arguments | info
----------------------|----------------------------|--------------------------
CreateQr | optionsQr | Create qr code
CreateVCard | optionsVCard | Create vCard code
CreateVCardQr | optionsVCard,optionsQr | Create qr code from vCardoptionsQr
keys | type | default | info
----------------------|------------|-----------|------------------------------
typeNumber | number | 15 | Type number (1 ~ 40)
typeElement | string | createImg | Type element create QR ('createImg','createSvg','createTable')
errorCorrectionLevel | string | L | Error correction level ('L', 'M', 'Q', 'H')
data | string | | Event error load json translation
cellSize | number | 2 | Size qroptionsVCard
https://en.wikipedia.org/wiki/VCard
keys | type | info
--------------------------|---------------|------------------------------
version | string | The version of the vCard specification. In versions 3.0 and 4.0, this must come right after the BEGIN property.
formattedName | string | Customize contact name
firstName | string | First name contact
middleName | string | Middle name contact
lastName | string | Last name contact
namePrefix | string | Add prefix name
nameSuffix | string | Add suffix name
nickname | string | One or more descriptive/familiar names for the object represented by this vCard.
gender | string | Defines the person's gender.
birthday | string | Date of birth of the individual associated with the vCard.
anniversary | string | Defines the person's anniversary.
email | array,string | HOME The address for electronic mail communication with the vCard object.
workEmail | array,string | WORK The address for electronic mail communication with the vCard object.
otherEmail | array,string | OTHER The address for electronic mail communication with the vCard object.
logo | object | An image or graphic of the logo of the organization that is associated with the individual to which the vCard belongs.
logo.url | string | Url to img
logo.mediaType | string | Type
logo.base64 | boolean | Format img
photo | object | An image or photograph of the individual associated with the vCard.
photo.url | string | Url to img
photo.mediaType | string | Type
photo.base64 | boolean | Format img
cellPhone | array,string | Phone cellular
pagerPhone | array,string | Phone to send messages to a pager
homePhone | array,string | Phone home
workPhone | array,string | Phone work
homeFax | array,string | Fax home
workFax | array,string | Fax work
otherPhone | array,string | Other phone
homeAddress | object | Home address
homeAddress.label | string | Represents the actual text that should be put on the mailing label when delivering a physical package to the person/object associated with the vCard (related to the ADR property).
homeAddress.street | string | Home street
homeAddress.city | string | Home city
homeAddress.stateProvince | string | Home stateProvince
homeAddress.postalCode | string | Home postalCode
homeAddress.countryRegion | string | Home countryRegion
workAddress | object | Home workAddress
workAddress.label | string | Represents the actual text that should be put on the mailing label when delivering a physical package to the person/object associated with the vCard (related to the ADR property).
workAddress.street | string | Work street
workAddress.city | string | Work city
workAddress.stateProvince | string | Work stateProvince
workAddress.postalCode | string | Work postalCode
workAddress.countryRegion | string | Work countryRegion
title | string | Specifies the job title, functional position or function of the individual associated with the vCard object within an organization.
role | string | The role, occupation, or business category of the vCard object within an organization.
organization | string | The name and optionally the unit(s) of the organization associated with the vCard object. This property is based on the X.520 Organization Name attribute and the X.520 Organization Unit attribute.
url | string | A URL pointing to a website that represents the person in some way.
workUrl | string | Work URL pointing to a website that represents the person in some way.
note | string | Specifies supplemental information or a comment that is associated with the vCard.
socialUrls | object | Social contact
socialUrls.facebook | string | Facebook
socialUrls.linkedIn | string | LinkedIn
socialUrls.twitter | string | Twitter
socialUrls.flickr | string | Flickr
socialUrls.skype | string | Skype
socialUrls.(custom) | string | Other social
source | string | By default, if this property is not grouped with other properties it specifies the pronunciation of the FN property of the vCard object
rev | string | A timestamp for the last time the vCard was updated.
Example
`html
``