1.2.4 • Published 5 years ago

@sylvainneung/qr-code-generator v1.2.4

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

QR-code-generator

Simply generate your QR codes

Maintenance

Required

Dependencies

Get started

$ npm i @sylvainneung/qr-code-generator --save

https://www.npmjs.com/package/@sylvainneung/qr-code-generator

Example

'use strict';

const qrGenerator = require('@sylvainneung/qr-code-generator');


//default directory root of your project

//Sync
qrGenerator.generateQrImage("mydata", "mypicname", "png", "my/dir/path/optional");


//Async
qrGenerator
    .generateQrImageAsync("myOtherData", "otherpic", "svg", "my/dir/path/optional")
    .then(response => {
        console.log("Data", response)
    })
    .catch(err => console.log("Err => ", err));

Documentation

Methodsparamsdescription
generateQrImageAsyncdata, picName, picType, picPathCreate new QR image asynchronous
generateQrImagedata, picName, picType, picPathCreate new QR image synchronous

Details params

ParamsTypedescriptionInfos
dataStringqr picture dataNumeric only Max. 7,089 characters (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) / Alphanumeric Max. 4,296 characters (0–9, A–Z upper-case only, space, $, %, *, +, -, ., /, :) / Binary/byte Max. 2,953 characters (8-bit bytes) (23624 bits)
picNameStringname of your file
picTypeString -> only support "svg" "png" "jpeg" "jpg"picture type
picPathString? (optional)folder path"my/folder/name"
1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago