1.1.0 • Published 3 years ago

@matthewdutzi/mergemd v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Installation

Install from npm/yarn

$ npm install -g @matthewdutzi/mergemd

or

$ yarn global add @matthewdutzi/mergemd

to install globally.

Clone to local

Clone this repo, cd into it, and then run

$ npm link

Usage

This package will merge all the files in a directory into one file called merged.md or merged.mdx.

It now works for markdown files, but should really work for plain text and code files.

Provide directory

$ merge path/to/directory

This merges all the files in path/to/directory.

Don't know what directory you want? Try running $ pwd inside the folder you want.

No provided directory

$ merge

This merges all the files in the directory where this command is run.

Options

$ merge -mdx

This changes output file extension from '.md' to '.mdx'

$ merge -no-file-info

This disables file info comments of merged files in output file

License

Copyright 2017 Mandy Chen

Licensed under MIT