1.1.1 • Published 6 months ago

gulp-file2qr v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

gulp-file2qr

GitHub release NPM release

CI Status Tests Results Coverage

Semantic Versioning Conventional Commits PRs Welcome

VS Code TypeScript EditorConfig ESLint

This Gulp plugin build QRCode from data in source files (now from .url files, and from other file types in the future).

Contents

Install

npm install --save-dev gulp-file2qr

Examples

Create PNG QRCode from .url files with default settings

url2qr can create PNG QRCodes from .url files.

import { url2qr } from '#gulp-file2qr';
import GulpClient from 'gulp';

function task1() {
  return GulpClient.src('fixtures/*.url')
    .pipe(url2qr())
    .pipe(GulpClient.dest('output'));
};
task1.description = 'Test gulp task for creating PNG QR codes';
GulpClient.task(task1);

.url files — INI files. For example:

[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
[InternetShortcut]
URL=https://github.com/IT-Service-NPM/gulp-file2qr

QRCode:

QRCode

Create QRCode in streaming mode with scale

Read .url files in streaming mode and create PNG QRCodes with scale = 10:

import { url2qr } from '#gulp-file2qr';
import GulpClient from 'gulp';

function task1() {
  return GulpClient.src('fixtures/*.url', { buffer: false })
    .pipe(url2qr({ qrOptions: { scale: 10 }, buffer: false }))
    .pipe(GulpClient.dest('output', { encoding: false }));
};
task1.description = 'Test gulp task for creating PNG QR codes';
GulpClient.task(task1);

QRCode:

QRCode

API

Please, read the API reference.

License

MIT © Sergei S. Betke

1.1.1

6 months ago

1.1.0

6 months ago

1.0.0

7 months ago