open-index/open-npm huggingface dataset:
npm package: @pgaubatz/qr-image
Description: QR Code generator (png, svg, pdf, eps)
Author: Alexey Ten
Latest version: 3.1.0

qr-image
========

[![npm version](https://badge.fury.io/js/qr-image.svg)](https://badge.fury.io/js/qr-image)

This is yet another QR Code generator.

Overview
--------

  * No dependecies;
  * generate image in `png`, `svg`, `eps` and `pdf` formats;
  * numeric and alphanumeric modes;
  * support UTF-8.

[Releases](https://github.com/alexeyten/qr-image/releases/)


Installing
-----

```shell
npm install qr-image
```

Usage
-----

Example:
```javascript
var qr = require('qr-image');

var qr_svg = qr.image('I love QR!', { type: 'svg' });
qr_svg.pipe(require('fs').createWriteStream('i_love_qr.svg'));

var svg_string = qr.imageSync('I love QR!', { type: 'svg' });
```

[More examples](./examples)

`qr = require('qr-image')`

### Methods

  * `qr.image(text, [ec_level | options])` — Readable stream with image data;
  * `qr.imageSync(text, [ec_level | options])` — string with image data. (Buffer for `png`);
  * `qr.svgObject(text, [ec_level | options])` — object with SVG path and size;
  * `qr.matrix(text, [ec_level])` — 2D array.


### Options

  * `text` — text to encode;
  * `ec_level` — error correction level. One of `L`, `M`, `Q`, `H`. Default `M`.
  * `options` — image options object:
    * `ec_level` — default `M`.
    * `type` — image type. Possible values `png` (default), `svg`, `pdf` and `eps`.
    * `size` (png and svg only) — size of one module in pixels. Default `5` for png and `undefined` for svg.
    * `margin` — white space around QR image in modules. Default `4` for `png` and `1` for others.
    * `customize` (only png) — function to customize qr bitmap before encoding to PNG.
    * `parse_url` (experimental, default `false`) — try to optimize QR-code for URLs.

Changes
-------

  * Implement `imageSync` for `png`.


TODO
----

  * Tests;
  * mixing modes;
  * Kanji (???).
npm package: @pgaubatz/uuid
Description: Create, parse and unparse RFC 4122 v4 UUIDs
Author: Patrick Gaubatz
Latest version: 0.1.0

# @pgaubatz/uuid [![travis][travis-image]][travis-url]

#### Create, parse and unparse RFC 4122 v4 UUIDs.

[![saucelabs][saucelabs-image]][saucelabs-url]

[travis-image]: https://img.shields.io/travis/pgaubatz/node-uuid/master.svg
[travis-url]: https://travis-ci.org/pgaubatz/node-uuid
[saucelabs-image]: https://saucelabs.com/browser-matrix/pgaubatz-node-uuid.svg
[saucelabs-url]: https://saucelabs.com/u/pgaubatz-node-uuid