0.1.0 • Published 9 years ago

doxie.append v0.1.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.
Add a string at the end of your docs.

CLI Usage

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

$ npm install --global dox doxie doxie.append

Any string you --append will be appended at the end of your docs:

$ echo '' | dox | doxie --append 'a b c\n' --append 'def\n' --output
a b c
def

Programmatic usage

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

$ npm install doxie-core doxie.append

Pass a single string to doxie.append to instantiate the plugin:

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

const myDoxData = [{isPrivate: true}, {isPrivate: false}, {isPrivate: false}];

doxie([
  render(({data}) => `${data.isPrivate ? 'Sshhh…' : 'Boom!'}\n`),
  append('AAAAAAA!\n'),
  output(),
])(myDoxData).output;
//» "Sshhh…\nBoom!\nBoom!\nAAAAAAA!\n"

License

MIT © Studio B12 GmbH

0.1.0

9 years ago