Socket
Book a DemoInstallSign in
Socket

verb-tag-jscomments

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

verb-tag-jscomments

Tag for Verb. Uses js-comments to parse JavaScript code comments and generate API documentation.

latest
Source
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

verb-tag-jscomments NPM version

Tag for Verb. Uses js-comments to parse JavaScript code comments and generate API documentation.

Visit the js-comments repo for documentation.

Install

Install with npm:

npm i verb-tag-jscomments --save-dev

Usage

If you're using verb-cli, you will need to define ['verb-tag-jscomments'] in the tags property in the front matter of your project's .verbrc.md (or docs/README.tmpl.md). This registers the tag with verb:

Example:

---
tags: ['verb-tag-jscomments']
---

In your templates, you can now use the tag like this:

{%= jscomments("index.js") %}

(Also note that front-matter is just one way to register verb tags, filters, and plugins. See the verb documentation for more info.)

Filtering

The easiest way to filter the output is to use Coffee front matter.

---coffee
tags: ['verb-tag-jscomments']

# extend the function onto the context
fn:
  filter = (comment) -> console.log(comment)
---

{%= jscomments("index.js", {fn: filter}) %}

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license

This file was generated by verb-cli on August 25, 2014.

Keywords

verbtag

FAQs

Package last updated on 25 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts