Skip to content

Commit

Permalink
fix: Linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tijmenstor committed Aug 22, 2024
1 parent 156a684 commit 0bd90ea
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Generating resumes with JSONResume! Makes use of the `resumed` CLI to generate r
## Features

- :white_check_mark: Supports building multiple resumes at once using a glob pattern
- :white_check_mark: Support for JSON _and_ YAML input files
- :white_check_mark: Support for JSON *and* YAML input files
- :white_check_mark: Support for local and remote themes
- :white_check_mark: Support for PDF and HTML output

Expand Down
34 changes: 17 additions & 17 deletions src/convert.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
// Used to convert a given HTML file to a PDF file

import * as fs from "fs";
import puppeteer from "puppeteer";
import * as fs from 'fs'
import puppeteer from 'puppeteer'

const htmlFile = process.argv[2];
const htmlFile = process.argv[2]
const pdfFile = process.argv[3];

(async () => {
const browser = await puppeteer.launch({
headless: "new",
executablePath: "/usr/bin/chromium-browser",
headless: 'new',
executablePath: '/usr/bin/chromium-browser',
args: [
"--no-sandbox",
"--headless",
"--disable-gpu",
"--disable-dev-shm-usage",
],
});
const page = await browser.newPage();
const html = fs.readFileSync(htmlFile, "utf8");
await page.setContent(html);
await page.pdf({ path: pdfFile, format: "A4" });
'--no-sandbox',
'--headless',
'--disable-gpu',
'--disable-dev-shm-usage'
]
})
const page = await browser.newPage()
const html = fs.readFileSync(htmlFile, 'utf8')
await page.setContent(html)
await page.pdf({ path: pdfFile, format: 'A4' })

await browser.close();
})();
await browser.close()
})()

0 comments on commit 0bd90ea

Please sign in to comment.