referencer

0.2.5 • Public • Published

referencer-js

Travis Coveralls NPM Github

Generate a markdown reference from your public API docstrings and add it to your readme.

Features

  • Uses jsdoct-to-markdown under the hood

Getting Started

The package uses semantic versioning. It means that major versions could include breaking changes.

$ npm install referencer

Documentation

referencer package README.md --in-place

API Reference

cli

Command-line interface

Usage: cli [options] <package> <document>

Options:
 --in-place                             Output as JSON
 --package-pattern <package-pattern>    Package pattern (default: "const { (\w+) } = require\('\.\/(\w+)'\)")
 --document-section <document-section>  Document section (default: "## API Reference")
 -h, --help                             output usage information

generateDocument()

Generate document

generateReference()

Generate reference

Contributing

nvm install 12
nvm use 12
npm install
npm test

Changelog

v0.x

  • Initial version

Readme

Keywords

none

Package Sidebar

Install

npm i referencer

Weekly Downloads

1

Version

0.2.5

License

MIT

Unpacked Size

11.7 kB

Total Files

18

Last publish

Collaborators

  • roll