@minodisk/medic
v0.8.0
Published
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.
Downloads
20
Readme
@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.
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
- Write
- [x] Write post
- [x] Edit post
- [ ] Delete draft
- [ ] Delete post
- [ ] Schedule to publish
- [ ] Unpublish post
- [x] Tags
- Images
- [x] Image captions
- [x] Image grids
- Embeds
- [x] Medium Posts
- [x] GitHub Gists
- [x] Embed Tweets