A CLI that converts a Markdown resume into a styled HTML preview, print-ready PDF, or ATS-friendly plain text file.
npm installWrite your resume in Markdown using # for your name, contact info on the lines below, and ## for each section:
# Jane Doe
jane@example.com | 555-1234 | https://janedoe.dev
## Experience
- Software Engineer at Acme Corp (2020-present)
- Junior Developer at StartupXYZ (2018-2020)
## Education
- BS Computer Science, MIT (2018)
## Skills
- TypeScript, React, Node.js, PostgreSQLParse - extract structured JSON from your resume:
npx ts-node src/cli.ts parse resume.mdHTML - generate a styled, self-contained HTML file:
npx ts-node src/cli.ts html resume.md -o resume.htmlPDF - export a print-ready PDF (via Puppeteer):
npx ts-node src/cli.ts pdf resume.md -o resume.pdfText - export ATS-friendly plain text:
npx ts-node src/cli.ts text resume.md -o resume.txt| Flag | Commands | Description |
|---|---|---|
-o, --output <path> |
html, pdf, text | Output file path |
--template <name> |
html, pdf | Template style: minimal (default), classic, or modern |
--primary <color> |
html, pdf | Custom primary color for headings (e.g. #2563eb) |
--sections <list> |
html | Comma-separated sections to include, in order |
- minimal - clean serif font, understated styling (default)
- classic - centered header, uppercase headings, traditional layout
- modern - sans-serif, accent color borders, contemporary feel
Create a resumark.config.json in your project root to set defaults:
{
"colors": {
"primary": "#2563eb"
}
}CLI flags always override config file values.
Generate a modern-styled HTML resume with a custom color:
npx ts-node src/cli.ts html resume.md --template modern --primary '#059669' -o resume.htmlExport only Experience and Skills sections as PDF:
npx ts-node src/cli.ts html resume.md --sections 'experience,skills' -o resume.html
npx ts-node src/cli.ts pdf resume.md -o resume.pdfMIT