1.1.0 • Published 4 years ago

create-md v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

:information_desk_person: Create Markdown

Create docs with a simple command

GitHub last commit license GitHub repo size

demo

:pushpin: Table of Contents

:telescope: Overview

This simple CLI helps you to bootstrap a nice readme and licenses from the scratch.

This readme was bootstrapped with create-md!

Why did I make this?

Creating nice readmes, license and other docs for applications can be really boring, but it is important to make your project more understandable. In order to make this task easier, I create this CLI to automate the process of bootstrapping my readme and some other docs like licenses and issues templates.

:eyes: Requirements

  • Node.js
  • npm or yarn

:zap: Quick start

There is no need to install the package. With modern versions of yarn and npm there is no need to install the package. You can run it directly with yarn create and npm init.

If you use yarn:

yarn create md

If you prefer npm:

npm init md

Creating license:

yarn create md license
npm init md license

Hint: A well filled package.json helps the CLI to infer some default answers. Look an example below:

package.json example

:tada: Usage

Call the CLI using yarn create or npm init. The create-md CLI take only one argument (template) and some options. If it is called with no argument, the default template will be used (readme). See below the list of available templates:

  • readme (default)
  • license (MIT license)

The table below describes the options available currently.

FlagWhat is it?What does it do?Default value
--extFile extensionSet the extension of the output file to the given value..md
--nameFile nameSet the name of the output file to the given value.template's name

Examples

Note: yarn create can be replaced by npm init in the examples.

Creating a readme named foo inside a folder named docs:

yarn create md readme --name=docs/foo

Creating a license named with no extension

yarn create md license --ext=

:sparkles: Features

  • Generate md files
  • Answer inference
  • Modular templates

:bomb: Next steps

  • Refactor the basecode
  • Feature: ask if user want to overwrite files if already exists
  • Feature: Auto generate table of contents
  • Write tests
  • Feature: take custom templates as argument
  • Create more templates
  • Feature: flag --all must create default markdowns (readme, license, issues etc.) in batch
  • Allow .create-md (maybe .cmrc or .createmdrc, who knows...) config file

:star2: Contributing

Contributions, issues and feature requests are welcome!

  • ⭐️ Star the project
  • 🐛 Find and report issues
  • 📥 Submit PRs to help solve issues or add features

Feel free to check issues page. You can also take a look at the contributing guide.

:octocat: Author

Lucas Miranda

:books: License

Copyright © 2020 Lucas Miranda This project is MIT licensed.

1.1.0

4 years ago

1.0.0

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago