Skip to content

IMA-WorldHealth/coral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coral

A PDF rendering engine based on puppeteer for IMA World Health projects, with automatic inlining of assets and sensible defaults.

Usage

const render = require('@ima-worldhealth/coral');

async function toPdf(html) {
  const rendered = await render(html);
  return rendered;
}

License

MIT