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 🙏

© 2024 – Pkg Stats / Ryan Hefner

resumed-cli

v2.1.9

Published

The JSON Resume command line interface

Downloads

8

Readme

resumed-cli

This is the command line tool for JSON Resume, the open source initiative to create a JSON-based standard for resumes.

Read more...

Getting Started

Install the command-line tool:

npm install -g resumed-cli

commands

resumed --help

Show a list of options and commands for the CLI.

resumed init

Creates a new resume.json file in your current working directory.

Complete the resume.json with your text editor. Be sure to follow the schema (available at http://jsonresume.org).

resumed validate

Validates your resume.json against our schema tests to ensure it complies with the standard. Tries to identify where any errors may be occurring.

resumed export [fileName]

Exports your resume locally in a stylized HTML, Markdown, or PDF format.

A list of available themes can be found here: http://jsonresume.org/themes/

Please npm install the theme you wish to use locally before attempting to export it.

Options:

  • --format <file type> Example: --format pdf
  • --theme <name> Example: --theme flat

resume serve

Starts a web server that serves your local resume.json.

Options:

  • --port <port>
  • --theme <name>

supported resume types

  • json: via JSON.parse.
  • yaml: via yaml-js
  • quaff: if --resume is a directory, then the path is passed to quaff and the resulting json is used as the resume. quaff supports a variety of formats in the directory, including javascript modules.

local theme development

Set --theme to the path of a local module that exports a theme.

resolution

For the export and serve commands use a sequence of algorithms to determine where the resume data comes from, what theme to use, how it should be rendered (e.g. pdf or html), and where the output is sent.

themes

The theme is found by passing the --theme option (as theme) through the following algorithm:

  1. theme => themePath
    • if theme only contains characters in the class [0-9a-zA-Z-] and does not already begin with jsonresume-theme-, then the aforementioned string is appended as a prefix and used as themePath
    • else set themePath to theme
  2. import the theme
    • themePath is passed through require.resolve with options.path set to process.cwd(). If a module is found this way it is used as the theme for rendering the resume.
    • else if --remote-fallback is not set, throw an error
    • use the server specified by --remote-fallback to render the resume using theme

resume data

Resume data is read from stdin if stdin.isTTY is falsy. Otherwise, the resume is read from --path as resolved from process.cwd(). --type defaults to application/json. Supported resume data mime types are:

  • application/json
  • text/yaml

for the export command only:

rendering function

The output type (and therefore the function used to render the resume data with the theme) is set by the --type option if specified, otherwise the file extension of [fileName] is used to determine the output type. Supported types are:

  • pdf
  • html

output

if [fileName] is not provided, output is sent to stdout.

License

Available under the MIT license.