@minodisk/medic

A CLI retrives the post metadata and body from the markdown file, transforms the body to HTML with @minodisk/medmd, then create and update posts in Medium with @minodisk/medkit.

Stats

StarsIssuesVersionUpdatedCreatedSize
@minodisk/medic
000.8.04 years ago4 years agoMinified + gzip package size for @minodisk/medic in KB

Readme

@minodisk/medic npm version

A CLI retrives the post metadata and body from the markdown file, transforms the body to HTML with @minodisk/medmd, then create and update posts in Medium with @minodisk/medkit.

Installation

$ npm install -g @minodisk/medic

Usage

$ medic --help

  Usage: medic [options] [command]


  Options:

    -V, --version              output the version number
    -d, --debug                not to use headless Chromium
    -c, --cookies-path <path>  cookies file path (default: cookies.json)
    -h, --help                 output usage information


  Commands:

    sync <patterns...>  creates or updates posts

Sync posts to Medium

$ medic sync --help

  Usage: sync [options] <patterns...>

  creates or updates posts


  Options:

    -h, --help  output usage information


  Examples:

    medic sync articles/example.md
    medic sync articles/*.md
    medic sync $(git diff --name-only)

Supported functions

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.