Skip to content

Instantly share code, notes, and snippets.

View phojie's full-sized avatar
🏴
Currently Building An Empire...

Phojie Rengel phojie

🏴
Currently Building An Empire...
View GitHub Profile
@phojie
phojie / html2pdf.js
Created September 11, 2023 18:18 — forked from antfu/html2pdf.js
HTML to PDF
import puppeteer from 'puppeteer'
import fs from 'fs'
async function buildPDF(htmlString) {
const browser = await puppeteer.launch({ headless: true })
const page = await browser.newPage();
await page.setContent(htmlString, { waitUntil: 'networkidle0' })
const pdf = await page.pdf({
format: 'A4',
displayHeaderFooter: false,

Conventional Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default