Skip to content

bsphere/node-visualead

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

node-visualead

Node.js wrapper for Visualead visual QR code API v1.0

Installation

npm install node-visualead

Usage

var VL = require('node-visualead');
var fs = require('fs');

var vl = new VL('API KEY');

/*
 * Please refer to the API documentation for available options
 *
 * Supported options are redirect, qr_size, qr_x, qr_y, qr_gravity, qr_rotation, output_image_width
 *
 */
 
var options = {
    content: 'http://www.example.com'
};

vl.generate('http://image_url.jpg', options, function(stream) {
    var file = fs.createWriteStream('./output.jpg');
    
    stream.on('end', function() {
      console.log('done!');
    });

    stream.pipe(file);  
}); 

Supported Methods

generate(imageUrl, options, callback);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published