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
- Host: GitHub
- URL: https://github.com/cbebe/create-md-blog
- Owner: cbebe
- License: mit
- Created: 2022-05-23T06:11:19.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-06T09:54:04.000Z (about 4 years ago)
- Last Synced: 2025-03-18T02:40:06.817Z (over 1 year ago)
- Language: TypeScript
- Size: 123 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Create Markdown Blog
Create a markdown blog file using the CLI
## 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
```