0.3.0 • Published 9 years ago

doxie.output v0.3.0

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

Coveralls – test coverage
Travis – build status
David – status of dependencies
Stability: unstable
Code style: airbnb

A plugin for doxie.
Output rendered comments.

CLI Usage

doxie --output is a plugin for the command-line tool doxie. Most plugins are designed for dox data. Install all three if you haven’t already:

$ npm install --global dox doxie doxie.output

Pass the option --output to doxie to put it in the plugin pipeline. Most likely you’ll want it listed last. I’m including --drop and --render to show this.

$ dox | doxie --drop @private --render --output

My first function
-----------------

Does awesome things.

###  Parameters:  ###
none.

###  Return value:  ###
* {Number} – the awesomeness factor


My second function
-----------------

<!-- … -->

Programmatic usage

doxie.output can be used directly with doxie-core – the backend of doxie. Install both if you haven’t already:

$ npm install doxie-core doxie.output

Call doxie.output without parameters to get the plugin function:

const doxie = require('doxie-core');
const drop = require('doxie.drop');
const render = require('doxie.render');
const output = require('doxie.output');

const myTemplate = ({data}) => /* … */;
const myDoxData = {/* … */};

doxie([
  drop({'@private': true}),
  render(myTemplate),
  output(),
])(myDoxData).output;
//» "\nMy first function\n-----------------\n\nDoes awesome things.\n\n###  Par…

License

MIT © Studio B12 GmbH

0.3.0

9 years ago

0.2.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago