npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

json2yamlresume

v0.9.1

Published

Convert JSON Resume to YAMLResume format

Readme

json2yamlresume

npm version npm downloads Node.js Version Discord

json2yamlresume is a command-line tool to convert JSON Resume to YAMLResume format.

Features

  • Format Conversion: Seamlessly convert JSON Resume to YAMLResume format
  • Structure Transformation:
    • Moves basics.location to top-level location object
    • Moves basics.profiles to top-level profiles array
    • Renames basics.label to headline
    • Renames location.countryCode to country
    • Renames education[].studyType to degree
    • Rename references[].reference to summary
    • Merges highlights arrays into summary fields as markdown unordered lists for projects, volunteer, and work sections
  • CLI Interface: Simple command-line interface for easy conversion
  • Validation: Built on top of YAMLResume's robust schema validation

Installation

npm install -g json2yamlresume

# or
yarn global add json2yamlresume

# or
pnpm add -g json2yamlresume

# or
bun add -g json2yamlresume

Usage

Convert a JSON Resume to YAMLResume

json2yamlresume input.json output.yaml

# or just call the command without the optional output path, in this 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

Show help

json2yamlresume --help
# or
json2yamlresume -h

Show version

json2yamlresume --version
# or
json2yamlresume -V

Example

Input (JSON Resume)

{
  "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"
    }
  ]
}

Output (YAMLResume)

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

Conversion Rules

1. Location and Profiles Movement

  • basics.location → top-level location
  • basics.profiles → top-level profiles
  • basics.labelbasics.headline

2. Education Field Mapping

  • education[].studyTypeeducation[].degree

3. Highlights Integration

The converter merges highlights arrays into summary fields as markdown unordered lists for these sections:

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

Example:

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

Becomes:

summary: |-
  Led development team.

  - Increased performance
  - Mentored developers

Supported JSON Resume Sections

The converter supports all standard JSON Resume sections:

  • basics (with location/profiles extraction)
  • work (with highlights merging)
  • volunteer (with highlights merging)
  • education (with studyType → degree mapping)
  • awards
  • certificates
  • publications
  • skills
  • languages
  • interests
  • references
  • projects (with highlights merging)

Related Projects

  • YAMLResume - Resume as Code in YAML
  • JSON Resume - The open source initiative to create a JSON-based standard for resumes

License

MIT License - see LICENSE for details.

Contributing

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

Support

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

Buy Me a Coffee