node-visualead

0.0.3 • Public • Published

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);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    3
  • 0.0.2
    2
  • 0.0.1
    2

Package Sidebar

Install

npm i node-visualead

Weekly Downloads

4

Version

0.0.3

License

MIT

Last publish

Collaborators

  • bsphere