Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 400 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 400 Bytes

capturely.app

Usage

import Capturely from "./capturely";

let capturely = Capturely
    .html('<strong>I am strong</strong')
    .pdf()
    .capture();

console.log(capturely);

/**
 * {
 *    url: 'https://s3-url',
 *    size: 1234 //bytes
 * }
 */

// or steam directly -- return binary blob
return Capturely
	.html('<strong>I am strong</strong')
	.pdf()
	.stream();