Skip to content

kennyhyun/word-resume

Repository files navigation

Word resume generator

npm package render-resume

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

Usage

Creating your won repo (recommended)

  1. Create a new repo using this as template (recommend private)
  2. Clone the repo in your env
  3. run npm i
  4. copy sample.yml into resume.yml in resume dir and update to yours
  5. run npm render to get docx in output dir
  6. You can commit and push your yml in resume dir if you want

Programmatic

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);

Yaml source format

header

provides meta data.

paragraphs

paragraphs.$.source has data key. paragraphs.$.title has the title of the paragraph.

paragraphs in the data are rendered by this order.

focusOn

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.

data

please refer to sample.yml

Todos

  • add test script
  • convert to npm library
  • publish npm v0.9.2
  • add using custom style.xml
  • add template to change styles

Screen shot

sample

About

Docx resume generator. Edit your resume in yml and convert it to a docx file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published