rendercv2yamlresume
    Preparing search index...

    rendercv2yamlresume

    rendercv2yamlresume

    npm version npm downloads Node.js Version Discord

    rendercv2yamlresume is a command-line tool to convert a RenderCV YAML file to YAMLResume format.

    RenderCV and YAMLResume share the same idea — a resume is a text file — but they model the data differently. RenderCV lets every section title be an arbitrary string and infers an entry type per section, while YAMLResume has a fixed set of section keys, stable field names and a controlled vocabulary for values such as degree. This tool bridges the two.

    • Section mapping: experience → work, selected_honors → awards, and the other names RenderCV's own samples use
    • Field mapping: company/position → name/position, journal → publisher, label/details → skill name/keywords, and more
    • Vocabulary mapping: free-form degrees (PhD, BS, M.Sc.) and social networks (X, StackOverflow) are mapped onto YAMLResume's fixed lists
    • Date handling: start_date/end_date ranges become startDate/endDate, a single date becomes the range start, and present is dropped because an empty endDate already renders as "Present"
    • Best-effort conversion with a report: anything YAMLResume cannot express is listed rather than silently dropped
    • Validation: the result is checked against YAMLResume's own schema before it is written
    npm install -g rendercv2yamlresume

    # or
    yarn global add rendercv2yamlresume

    # or
    pnpm add -g rendercv2yamlresume

    # or
    bun add -g rendercv2yamlresume
    # Convert and write alongside the input file
    rendercv2yamlresume John_Doe_CV.yaml

    # Or choose the output path
    rendercv2yamlresume John_Doe_CV.yaml resume.yml

    # Write even if the result does not validate
    rendercv2yamlresume John_Doe_CV.yaml --force

    The command exits with 0 on success and 1 when the input cannot be read, has no cv block, uses an unsupported locale, produces a resume that fails validation, or would overwrite its input without --force. --force permits invalid output and identical input/output paths, but not unsupported locales.

    Input:

    cv:
    name: John Doe
    headline: Backend Engineer
    email: [email protected]
    location: San Francisco, CA
    social_networks:
    - network: LinkedIn
    username: rendercv
    sections:
    education:
    - institution: Princeton University
    area: Computer Science
    degree: PhD
    start_date: 2018-09
    end_date: 2023-05
    experience:
    - company: Nexus AI
    position: Co-Founder & CTO
    start_date: 2023-06
    end_date: present
    highlights:
    - Built foundation model infrastructure serving 2M+ monthly API requests
    selected_honors:
    - bullet: Forbes 30 Under 30 in Enterprise Technology (2024)

    Output:

    ---
    content:
    basics:
    name: John Doe
    headline: Backend Engineer
    email: [email protected]
    location:
    city: San Francisco
    region: CA
    profiles:
    - network: LinkedIn
    username: rendercv
    education:
    - institution: Princeton University
    area: Computer Science
    degree: Doctor
    startDate: 2018-09
    endDate: 2023-05
    work:
    - name: Nexus AI
    position: Co-Founder & CTO
    startDate: 2023-06
    summary: '- Built foundation model infrastructure serving 2M+ monthly API requests'
    awards:
    - title: Forbes 30 Under 30 in Enterprise Technology
    awarder: Unknown
    date: '2024'

    RenderCV section titles are arbitrary. Titles that match a known alias are mapped; anything else is dropped and reported. Underscores, repeated spaces and full-width Unicode characters are normalized, so selected_honors and Selected Honors both work. Canonical section titles from every locale supported by YAMLResume are recognized automatically in addition to the English aliases below.

    RenderCV title YAMLResume key
    education, education_and_training education
    experience, work, employment, professional_experience, work_experience work
    projects, personal_projects projects
    publications publications
    skills, technical_skills skills
    languages languages
    interests interests
    awards, honors, selected_honors, honors_and_awards awards
    certificates, certifications certificates
    volunteer, volunteer_experience volunteer
    references references

    If two titles map onto the same key (for example both experience and work), their entries are appended rather than overwritten.

    RenderCV entry Behaviour
    ExperienceEntry → work or volunteer item; company → name/organization, position kept
    EducationEntry → education item; degree mapped onto the fixed list
    PublicationEntry → publication item; title → name, journal → publisher
    NormalEntry → project or certificate item; a [Name](url) name is split into name + url
    OneLineEntry → skill, language, interest or reference item, depending on the section
    BulletEntry / string → award item in an awards section, otherwise reported
    • Degrees are mapped case- and punctuation-insensitively: PhD, Ph.D., Doctorate → Doctor; BS, BSc, Bachelor of Science → Bachelor; MSc, M.S., MBA → Master.
    • Social networks are matched against YAMLResume's list: X → Twitter, StackOverflow → Stack Overflow. Networks with no counterpart (ORCID, ResearchGate, Mastodon) are dropped and reported.
    • Locales map RenderCV names (english, mandarin_chinese) onto YAMLResume codes (en, zh-hans). If YAMLResume does not support the requested locale, conversion stops with a warning and no output file is written.
    • Languages and fluency are matched case-insensitively against YAMLResume's fixed lists, with aliases such as Native and Fluent. Unsupported values are dropped and reported.
    • Dates pass through unchanged, except that present is dropped.
    • Headline, email, phone and website are copied; if RenderCV supplies a list for email/phone/website, the first value is used and the rest are reported.

    This is a migration aid, not a lossless round-trip. The two data models are not equivalent, and some information cannot cross the boundary.

    Cannot be represented at all — dropped with a report:

    • Arbitrary sections. patents, invited_talks, Things I Did — anything without a YAMLResume counterpart. YAMLResume has a fixed set of section keys, and there is no way to express a new one.
    • Per-element styling. The whole RenderCV design block: per-element colors, fonts, sizes, spacing, header alignment, photo placement, section title styles and Jinja2 template overrides. YAMLResume configures layout per engine under layouts[], which does not share these options.
    • settings. pdf_title, current_date, bold_keywords and render-command options describe a rendering run rather than resume data.
    • The profile photo. YAMLResume has no photo field.
    • Custom header connections. custom_connections with their Font Awesome icons have no slot in YAMLResume's header.
    • Entry locations. YAMLResume supports a header location but has no location field on education, work, project, or volunteer items, so these are reported.
    • Typst math and commands. $inline math$ and #emph[...] inside text fields will survive as literal text, not as typeset output.

    Represented, but with a loss you should review — reported for each case:

    • OneLineEntry → skills loses the proficiency level. RenderCV one-line entries carry no level, and YAMLResume requires one, so the converter writes level: Intermediate. Adjust every skill entry.
    • Bare bullets → awards invent an awarder. selected_honors bullets carry only free text, but YAMLResume's awards wants an awarder. The converter writes awarder: Unknown, and lists each award so you can fill it in.
    • Certificates invent an issuer. RenderCV normal entries have no issuer, so converted certificates use issuer: Unknown and are reported for review.
    • NormalEntry → projects requires a start date. YAMLResume requires startDate for projects. An entry with neither start_date nor date is dropped and reported.
    • Highlights become Markdown bullets inside summary. RenderCV keeps summary and highlights separate; YAMLResume has one rich-text field. Nested sub-bullets are already flattened by RenderCV's YAML, so they arrive as a single line of dash-joined text.
    • summary has a minimum length. YAMLResume requires at least 16 characters. Entries whose merged summary is shorter are converted but reported so you can expand them before building.
    • Publication publisher is derived. YAMLResume requires publisher, but RenderCV has journal. The converter uses journal, then the author list, then Unknown. Authors are dropped when a journal is available; every fallback and dropped author list is reported.
    • A single date becomes a startDate. YAMLResume has no single-date field, so an undated-by-range entry starts rather than floats.
    • Free-form degrees outside the vocabulary are dropped. Habilitation, Licentiate and similar have no counterpart in YAMLResume's seven degrees, so those education entries are dropped and reported. Add the entry by hand with a mapped degree such as Doctor.
    • location is a single string in RenderCV. The converter splits on commas, treats the last segment as the country when it matches YAMLResume's list, and otherwise as the region. A location like Remote becomes city: Remote. Verify the result.
    • Multiple email/phone/website values. RenderCV allows a list; YAMLResume has one field each. Only the first value is kept, and discarded values are reported.

    Every drop names the field that caused it, so the report distinguishes a missing institution from an unmappable degree rather than blaming the degree for both. Nothing is ever dropped without a report.

    Not converted by design:

    • RenderCV's locale.phrases, month_names and month_abbreviations. YAMLResume ships its own translations for the locales it supports; use its locale block.
    Code Meaning
    0 Converted and written (possibly with reported issues)
    1 Input missing, unparseable, has no cv block, uses an unsupported locale, failed validation, or would overwrite the input without --force

    MIT License — see LICENSE for details.

    Contributions are welcome! Please feel free to submit a Pull Request.

    If you find this tool helpful, consider supporting the YAMLResume project:

    Buy Me a Coffee