0.1.2 • Published 9 years ago

docoptmd v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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