markdown-magic-directory-tree
Print an archy tree for markdown file
Last updated 3 years ago by camachgk .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install markdown-magic-directory-tree 
SYNC missed versions from official npm registry.

Directory tree plugin

Add directory tree to markdown files via markdown-magic

Install

npm i markdown-magic markdown-magic-directory-tree --save-dev

Adding the plugin

See example.js for usage.

const fs = require('fs');
const path = require('path');
const markdownMagic = require('markdown-magic');

const config = {
  transforms: {
    DIRTREE: require('./index.js'),
  }
}

const markdownPath = path.join(__dirname, 'README.md');
markdownMagic(markdownPath, config);

Usage in markdown

markdown-magic-directory-tree/
├── .npmrc
├── example.js
├── index.js
├── package.json
├── README.md
└── yarn.lock

Options

  • dir - process.cwd() by default
  • ignore - ['.git', '.gitkeep', '.gitignore', 'node_modules'] by default
  • depth - Infinity by default (how deep in the tree to traverse)
  • onlyDirs - false by default (how mnuch t)

Current Tags

  • 1.2.3                                ...           latest (3 years ago)

7 Versions

  • 1.2.3                                ...           3 years ago
  • 1.2.2                                ...           3 years ago
  • 1.2.1                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 4
Dependencies (2)
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |