json-to-cv v1.0.3
JSON ⇒ CV
Create/Generate a web page CV/Resume from a JSON file. It's extensible, flexible, and easy to use.
Installation
As this package provides a json-to-cv cli tool, one should install it globally using below command:
npm install -g json-to-cv
Usage
- create and
cdinto a directory (e.g.my-cv) - create
person.jsonfile or copy it from any of theme's directory (e.g. person.json) - run
json-to-cv - your cv/resume should be in
distdirectory.
Themes
You can change the theme of cv very easily using --theme or -t option of build sub-command.
Example:
json-to-cv build --theme=<theme-name>
or
json-to-cv build -t <theme-name>
How themes are chosen?
json-to-cv will first look for <theme-name> named directory in the current directory to use as a theme(these are called local themes), if not found, it'll look if there is any built-in theme named <theme-name>, if not found, it'll end with an error.
built-in themes are which come with json-to-cv package
local themes are which you develop as per your needs. It's also used when you modify any built-in theme
For now, there is only one, default, theme; basic. Any contributions to themes are welcome and appreciated.
Modify Theme
You can modify any built-in theme very easily using clone-theme sub-command.
make sure you are in the same directory as person.json
- run
json-to-cv clone-theme <theme-name>to clone<theme-name>built-intheme in current directory.- e.g.
json-to-cv clone-theme basicwill create abasicnamed directory with all of its files. - the cloned theme will then be used as a
localtheme and you can modify it any way you like.
- e.g.
- modify any theme file(s) (I used pug for template).
- run
json-to-cv build -t <theme-name>to build cv/resume with cloned, now alocal, theme.- if you cloned
basictheme you don't need-tor--themeoption since it's the default. onlyjson-to-cvcommand would work too.
- if you cloned
Watch Files
If you pass -w or --watch option to build sub-command, json-to-cv will continuously look for any changes in person.json or theme files(local or built-in) and will rebuild the cv/resume.
Example:
json-to-cv build -w
or
json-to-cv build --watch