Generate docx resume from yaml data using docx
Benefits
- Avoid hassles like updating dates and focus on the contents.
- Generate Uptodate resume instantly
- Pdf conversion is also handy when you use libre office cli
- Manage the source file with your everday programming editor
- Track your changes in the private git repo
- Keep multiple revisons using
focusOn
field
** yet experimental
- Create a new repo using this as template (recommend private)
- Clone the repo in your env
- run
npm i
- copy sample.yml into resume.yml in
resume
dir and update to yours - run
npm render
to get docx inoutput
dir - You can commit and push your yml in
resume
dir if you want
npm install
$ npm i render-resume -S
in js
import docx from 'docx';
import fs from 'fs';
import render, { seeder } from 'render-resume';
const doc = render(seeder('some-random-seed'));
const packer = new docx.Packer();
const buffer = await packer.toBuffer(doc);
fs.writeFile('filename.docx', buffer);
provides meta data.
paragraphs.$.source
has data key.
paragraphs.$.title
has the title of the paragraph.
paragraphs in the data are rendered by this order.
Any data field name can have default key and override by the contents of the default. If focusOn has been provided, find focusOn key first, and use it if exists.
please refer to sample.yml
- add test script
- convert to npm library
- publish npm v0.9.2
- add using custom style.xml
- add template to change styles