A module to create small thumbnails out of site urls.
npm install jin-thumb --save
var jthumb = require('jin-thumb');
var url = "http://google.com";
jthumb.get(url, function(err, data) {
if (err) {
console.log(err);
return;
}
// e.g.
var img = '<img src="' + data + '">';
// assuming a node response object
...
res.end(data, 'binary');
});
-
0.1.1 release Added 'get' method shortcut for getSiteThumbnail
-
0.1.0 Initial release