webshot-factory
Version:
screenshots at scale based on headless chrome
15 lines • 416 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const shotFactory = require("../index");
shotFactory.init({
concurrency: 5,
callbackName: '',
warmerUrl: 'http://google.com',
width: 1000,
height: 600 // shot height
}).then(_ => {
shotFactory.getShot('http://yahoo.com').then(buffer => {
console.log(buffer);
});
});
//# sourceMappingURL=test-run.js.map