UNPKG

2.57 kBMarkdownView Raw
1# vk-qr
2
3![Node](https://img.shields.io/node/v/vk-qr.svg?style=flat-square)
4[![NPM](https://img.shields.io/npm/v/vk-qr.svg?style=flat-square)](https://www.npmjs.com/package/vk-qr)
5[![Travis](https://img.shields.io/travis/vkcom/vk-qr/master.svg?style=flat-square)](https://travis-ci.org/vkcom/vk-qr)
6[![David](https://img.shields.io/david/vkcom/vk-qr.svg?style=flat-square)](https://david-dm.org/vkcom/vk-qr)
7[![Coverage Status](https://img.shields.io/coveralls/vkcom/vk-qr.svg?style=flat-square)](https://coveralls.io/github/vkcom/vk-qr)
8[![NPM](https://img.shields.io/npm/dt/vk-qr.svg?style=flat-square)](https://www.npmjs.com/package/vk-qr)
9
10> this is a description
11
12### Usage
13
14```js
15import qrCodeGenerator from 'vk-qr';
16
17```
18
19### Installation
20
21Install via [yarn](https://github.com/yarnpkg/yarn)
22
23 yarn add vk-qr (--dev)
24
25or npm
26
27 npm install vk-qr (--save-dev)
28
29
30### configuration
31
32You can pass in extra options as a configuration object (➕ required, ➖ optional, ✏️ default).
33
34```js
35import qrCodeGenerator from 'vk-qr';
36
37```
38
39**property** ( type ) ` ✏️ default `
40<br/> 📝 description
41<br/> ❗️ warning
42<br/> ℹ️ info
43<br/> 💡 example
44
45### methods
46
47#### #name
48
49```js
50qrCodeGenerator
51
52```
53
54### Examples
55
56See [`example`](example/script.js) folder or the [runkit](https://runkit.com/vkcom/vk-qr) example.
57
58### Builds
59
60If you don't use a package manager, you can [access `vk-qr` via unpkg (CDN)](https://unpkg.com/vk-qr/), download the source, or point your package manager to the url.
61
62`vk-qr` is compiled as a collection of [CommonJS](http://webpack.github.io/docs/commonjs.html) modules & [ES2015 modules](http://www.2ality.com/2014/0
63 -9/es6-modules-final.html) for bundlers that support the `jsnext:main` or `module` field in package.json (Rollup, Webpack 2)
64
65The `vk-qr` package includes precompiled production and development [UMD](https://github.com/umdjs/umd) builds in the [`dist/umd` folder](https://unpkg.com/vk-qr/dist/umd/). They can be used directly without a bundler and are thus compatible with many popular JavaScript module loaders and environments. You can drop a UMD build as a [`<script>` tag](https://unpkg.com/vk-qr) on your page. The UMD builds make `vk-qr` available as a `window.qrCodeGenerator` global variable.
66
67### License
68
69The code is available under the [MIT](LICENSE) license.
70
71### Contributing
72
73We are open to contributions, see [CONTRIBUTING.md](CONTRIBUTING.md) for more info.
74
75### Misc
76
77This module was created using [generator-module-boilerplate](https://github.com/duivvv/generator-module-boilerplate).