Skip to content

kapouer/node-webkitgtk-pool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-webkitgtk-pool

A pool for node-webkitgtk

var pool = require('webkitgtk-pool')({
  min: 1,
  max: 4
}, {
  console: false
});

function shoot(url, filepath, cb) {
  pool.acquire(function(err, view) {
    view.load(url).once('idle', function() {
      this.png(filepath, function(err) {
        pool.release(view, cb);
      });
    });
  });
}

About

A pool for node-webkitgtk

Resources

License

Stars

Watchers

Forks

Packages

No packages published