UNPKG

resumefy

Version:

A simple toolkit to bring your JSON Resume to life

14 lines (13 loc) 614 B
import { Renderer } from './Renderer.js'; /** * Renders a resume from a JSON file to HTML and PDF. * @param resumeFile The path to the resume JSON file * @param options An options object with the following properties: * @param options.theme The theme to use for rendering * @param options.outDir The directory to save the output files (default: '.') * @returns A promise resolving when rendering is complete */ export const render = async (resumeFile, options) => { const renderer = await Renderer.launch(resumeFile, options, { defaultViewport: null, headless: true }); return renderer.render(); };