json2yamlresume
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 json2yamlresumepnpm add -g json2yamlresumeyarn global add json2yamlresumebun add -g json2yamlresumePenggunaan
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.jsonTampilkan 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 commandTampilkan versi
$ json2yamlresume --version
0.7.4Contoh
Berikut adalah contoh resume dalam format JSON Resume:
{
"basics": {
"name": "John Doe",
"label": "Software Engineer",
"email": "john@example.com",
"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.ymlBerikut adalah output dalam format YAMLResume:
---
content:
basics:
name: John Doe
headline: Software Engineer
email: john@example.com
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 developersAturan Konversi
1. Pemindahan Lokasi dan Profil
basics.location→locationdi tingkat atasbasics.profiles→profilesdi tingkat atasbasics.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 developersIngat 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