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

https://github.com/cbebe/create-md-blog

Create a Markdown blog file from the command line
https://github.com/cbebe/create-md-blog

Last synced: 8 months ago
JSON representation

Create a Markdown blog file from the command line

Awesome Lists containing this project

README

          

# Create Markdown Blog

Create a markdown blog file using the CLI


NPM Version
Package License
NPM Downloads
Coverage Status

## Install

To use once:

```
npx create-md-blog
```

To use as a dev dependency on a particular project:

```
npm install --save-dev create-md-blog
npm md-blog
```

Install globally:

```
npm install --global create-md-blog
md-blog
```

## Command Line Options

```
Usage: md-blog [options]

Options:
-s, --standalone Create a standalone file instead of a blog
directory
--no-standalone
--mdx Create MDX file (default: false)
-a, --author Author of the blog post
-t, --title Title of the blog
--slug Slug path of the blog file
--tags Specify existing tags
-p, --prompt-new-tags Prompt to add new tags (default: false)
-d, --date Date posted for the blog
-h, --help display help for command
```

Any unspecified options will be prompted:

```
✔ Create a standalone file?
(Yes if you're not including other files like images) › no
✔ Who is creating this blog? › charles
✔ Title of the blog … Example blog
✔ URL slug for the blog … example-blog
✔ Pick existing tags › nice
✔ Date of blog › May 23 2022
Created blog directory blog/2022-05-23-example-blog and index.md file
```