Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

kimmobrunfeldt/url-to-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

url-to-image

Build Status

Takes screeshot of a given page. This module correctly handles pages which dynamically load content making AJAX requests. Instead of waiting fixed amount of time before rendering, we give a short time for the page to make additional requests.

Usage

var screenshot = require('url-to-image');
screenshot('http://google.com', 'google.png').done(function() {
    // now google.png exists and contains screenshot of google.com
}).fail(function(err) {
    console.error(err);
});

Install

npm install url-to-image

Test

npm test