YAMLResume

json2yamlresume

Konversi berkas JSON Resume yang ada ke format YAMLResume dengan json2yamlresume, termasuk transformasi struktur dan validasi.

json2yamlresume adalah alat baris perintah untuk mengonversi JSON Resume ke format YAMLResume.

Fitur

  • Konversi Format: konversi mulus JSON Resume ke format YAMLResume
  • Transformasi Struktur
  • Antarmuka CLI: antarmuka baris perintah sederhana untuk konversi mudah
  • Validasi: dibangun di atas validasi skema YAMLResume yang kuat /docs/compiler/schema

Instalasi

npm install -g json2yamlresume
pnpm add -g json2yamlresume
yarn global add json2yamlresume
bun add -g json2yamlresume

Penggunaan

Konversi JSON Resume ke YAMLResume

$ json2yamlresume input.json output.yaml

# or call the command without the optional output path, in which case the
# output will be written to the same directory as the input file with the same
# name but with a .yml extension
$ json2yamlresume input.json

Tampilkan bantuan

$ json2yamlresume --help
Usage: json2yamlresume [options] <input-file> [output-file]

Convert JSON Resume to YAMLResume format

Arguments:
  input-file     Input JSON Resume file path
  output-file    Output YAMLResume file path

Options:
  -V, --version  output the version number
  -h, --help     display help for command

Tampilkan versi

$ json2yamlresume --version
0.7.4

Contoh

Berikut adalah contoh resume dalam format JSON Resume:

json-resume.json
{
  "basics": {
    "name": "John Doe",
    "label": "Software Engineer",
    "email": "[email protected]",
    "location": {
      "city": "San Francisco",
      "countryCode": "US"
    },
    "profiles": [
      {
        "network": "GitHub",
        "username": "johndoe",
        "url": "https://github.com/johndoe"
      }
    ]
  },
  "work": [
    {
      "name": "Tech Corp",
      "position": "Senior Developer",
      "startDate": "2020-01",
      "summary": "Led development of web applications.",
      "highlights": [
        "Increased performance by 40%",
        "Mentored 5 junior developers"
      ]
    }
  ],
  "education": [
    {
      "institution": "University of California",
      "area": "Computer Science",
      "studyType": "Bachelor of Science",
      "startDate": "2018"
    }
  ]
}

Anda dapat menjalankan perintah berikut untuk mengonversi JSON Resume ke YAMLResume:

$ json2yamlresume json-resume.json yamlresume.yml

Berikut adalah output dalam format YAMLResume:

yamlresume.yml
---
content:
  basics:
    name: John Doe
    headline: Software Engineer
    email: [email protected]
  education:
    - institution: University of California
      area: Computer Science
      degree: Bachelor of Science
      startDate: "2018"
  location:
    city: San Francisco
    country: US
  profiles:
    - network: GitHub
      username: johndoe
      url: https://github.com/johndoe
  work:
    - name: Tech Corp
      position: Senior Developer
      startDate: 2020-01
      summary: |-
        - Increased performance by 40%
        - Mentored 5 junior developers

Aturan Konversi

1. Pemindahan Lokasi dan Profil

  • basics.location → location di tingkat atas
  • basics.profiles → profiles di tingkat atas
  • basics.label → basics.headline

2. Pemetaan Bidang Pendidikan

  • education[].studyType → education[].degree

3. Integrasi Sorotan

Konverter menggabungkan array highlights ke dalam kolom summary sebagai daftar markdown unordered untuk bagian-bagian ini:

  • work[]
  • volunteer[]
  • projects[]

Contoh:

{
  "summary": "Led development team.",
  "highlights": ["Increased performance", "Mentored developers"]
}

Menjadi:

summary: |-
  Led development team.

  - Increased performance
  - Mentored developers

Ingat bahwa kolom summary YAMLResume mendukung rich text!

4. Referensi

  • references[].reference → references[].summary

Bagian JSON Resume yang Didukung

Konverter mendukung semua bagian standar JSON Resume:

  • ✅ basics
  • ✅ work
  • ✅ volunteer
  • ✅ education
  • ✅ awards
  • ✅ certificates
  • ✅ publications
  • ✅ skills
  • ✅ languages
  • ✅ interests
  • ✅ references
  • ✅ projects
Edit on GitHub

Last updated on

On this page