docoptmd

0.1.2 • Public • Published

docopt.md Travis-CI.org Build Status Coveralls.io Coverage Rating

Read your docopt configuration directly from your README.md file and package.json.

Readme files must contain a code block with the language type docopt. All text within the block is passed as the docopt configuration.

See fixture/ for an example.

Example

var docoptmd = require('docoptmd');
 
var options = docoptmd(__dirname, {argv: process.argv});

Options

All existing docopt options are passed right through. In addition to these, docoptmd introduces the readme option, which specifies the basename of the readme file (default README.md).

License

Licensed under the MIT license

Package Sidebar

Install

npm i docoptmd

Weekly Downloads

1

Version

0.1.2

License

MIT

Last publish

Collaborators

  • qix