0.0.6 • Published 7 years ago

marked-directory v0.0.6

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

marked-directory

NPM Version NPM Downloads Build Status Code Coverage Dependency Status devDependency Status

Markdown to HTML conversion on entire directories using marked

Installation

Add to your project locally

npm install marked-directory --save-dev 

Or add it globally

npm install -g marked-directory

Usage

Example

const md = require('marked-directory');

// returns a promise
md([
    './test/docs/**/*.md', 
    './test/docsBuild',
    './test/docs/',
    './'
]).then(() => console.log('done'));

Options

md(
    [
        './test/docs/**/*.md', // Glob pattern to find files
        './test/docsBuild', // Path to output rendered files
        './test/docs/', // (optional) SearchValue to find in destination paths
        './' // (optional) Replacement value if the above SearchValue is found
    ], {
        logger, // default logging is console.log
        markedOptions // override marked options
    }
);

CLI

Example

marked-directory './test/docs/**/*.md' './test/docsBuild' './test/docs/' './'

Options

marked-directory [glob to markdown files] [output directory] [path searchValue to replace] [path newValue if found by previous arg]
0.0.6

7 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago