Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/philippbaschke/cv

A React PDF and YAML CV generator
https://github.com/philippbaschke/cv

Last synced: 4 days ago
JSON representation

A React PDF and YAML CV generator

Awesome Lists containing this project

README

        

# @philippbaschke/cv

A React PDF and YAML CV generator

[![npm version](https://img.shields.io/npm/v/@philippbaschke/cv?style=flat-square)](https://www.npmjs.com/package/@philippbaschke/cv)
[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg?style=flat-square)](https://github.com/xojs/xo)
[![License](https://img.shields.io/github/license/PhilippBaschke/cv?style=flat-square)](LICENSE)

## Table of Contents

- [Usage](#usage)
- [CLI Commands](#cli-commands)
- [Example](#example)

## Usage

```sh
# Create the CV data project
npx @philippbaschke/cv init

# Go to the CV data project folder
cd cv-data

# Create the CV PDF
npx @philippbaschke/cv create

# Open the CV PDF with the default application
open cv.pdf
```

## CLI Commands

The commands can be run with `npx @philippbaschke/cv `.

### init

The `init` command initializes a git project for the CV data.

#### Usage

```sh
npx @philippbaschke/cv init [path]
```

#### Arguments

| Name | Default | Description |
| ------ | --------- | ------------------------------------------------------ |
| `path` | `cv-data` | A path where the CV data project should be initialized |

### create

The `create` command creates the PDF.

#### Usage

```sh
npx @philippbaschke/cv create [options] [output-file]
```

#### Arguments

| Name | Default | Description |
| ------------- | -------- | ------------------------------------ |
| `output-file` | `cv.pdf` | A path where the PDF should be saved |

#### Options

| Name | Default | Description |
| --------------------------- | --------------- | --------------------------- |
| `-d, --data-project ` | `process.cwd()` | A path to a CV data project |

## Example

[![Example CV](docs/cv.png)](docs/cv.pdf)