Package Exports
- js-comments
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (js-comments) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
js-comments 
Parse JavaScript code comments and generate API documentation.
Please report any bugs or feature requests, thanks!
Install
npm
npm i js-comments --save-dev
bower
bower install js-comments --save-dev
API
jscomments
var comments = require('js-comments');
var docs = comments(string);
See example output. See example code comments.
patterns
{String}: Glob pattern or file paths to use.dest
{String}: Optional destination file path for generating relative links.options
{Object}returns
{String}: String of rendered markdown documentation.
.parseFiles
Expands the given glob patterns
and creates a normalized
comments
object for each file in the array.
patterns
{String}: Glob pattern or file paths to use.dest
{String}: Optional destination file path for generating relative links.options
{Object}returns
{Array}: Returns an array of comments objects.
.render
Render a template string with the given context
. A
custom lodash template may be passed on the options.
context
{Object}options
{Object}returns
{String}: Return the rendered string.
Author
Jon Schlinkert
License
Copyright (c) 2014 Jon Schlinkert, contributors. Originally modified from scrawl.js. Copyright (c) 2014 Caolan McMahon, contributors. Released under the MIT license
This file was generated by verb-cli on August 25, 2014.