md-insert
insert content under a markdown header or into a comment delimited region
Last updated 6 months ago by goto-bus-stop .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install md-insert 
SYNC missed versions from official npm registry.

md-insert

insert content under a markdown header or into a comment delimited region

with a cli!

Install - Usage - License: Apache-2.0

npm travis standard

Install

npm install md-insert

Usage

$ md-insert
usage: md-insert <file> [--header name] [--region name] [-i]

  --header name  Insert content under the header with this name.
  --region name  Insert content under the comment-delimited region with this
                 name.

  -i  Update <file> in place. If given, the result is written to <file>,
      instead of to standard output.

Examples:

  md-insert -i README.md --header API < generated-doc.md

  make-toc README.md | md-insert -i README.md --region toc

  document-prop-types src/index.js | md-insert TEMPLATE.md --header Props > README.md

Regions

--region inserts content into a comment-delimited region like this:

<!--toc start-->
<!--toc end-->
md-insert FILE.md -i --region toc < TOC.md
<!--toc start-->
contents of TOC.md
<!--toc end-->

Headers

--header inserts content below a header like this:

## Props
document-prop-types src/index.js | md-insert README.md -i --header Props

License

Apache-2.0

Current Tags

  • 1.0.1                                ...           latest (6 months ago)

2 Versions

  • 1.0.1                                ...           6 months ago
  • 1.0.0                                ...           6 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (6)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |