
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Jade-doc is a Jade documentation generator. It takes Jade files as input, looks for comments flagged with @jadedoc and puts its contents in an output JSON file.
This package does not provide a styled interface for the documentation itself. Use jade-doc-html or jade-doc-markdown for human readable docs. Optionally use jade-doc-faucet for prettier terminal reporting.
Use the keyword @jadedoc to flag unbuffered block comments inside your jade files. Comments should be written in properly formatted YAML format.
//- @jadedoc
name: my jadedoc
description: this is a description for my jade doc
beep: boop
foo: faa
The immediate next Jade code block after the comment will be compiled to HTML output.
//- @jadedoc
name: some-node
div.this-is-output-for-jade-doc
div.this-isnt
Optionally provide mixin arguments, attributes and example calls. If no examples are given, mixins will not be executed, so no output will be generated.
Arguments and attributes follow the jsdoc param syntax.
//- @jadedoc
name: my mixin
description: this is my mixin documentation
arguments:
- {string} arg1 - this is the description of arg1
- {number} arg2 - this is the description of arg2
attributes:
- {string} attr1 - this is the description of attr1
- {number} attr2 - this is the description of attr2
examples:
- +myMixin('foo', 1)
- +myMixin('faa', 2, attr1='foo', attr2='faa')
mixin myMixin(arg1, arg2)
div this is a mixin #{arg1} #{arg2} #{attr1} #{attr2}
Should you need multiline examples, use YAML's folded style, like:
//- @jadedoc
examples:
- >
+myMixin({
foo: 'foo
}
Jade locals can be also be passed.
//- @jadedoc
name: tag
locals:
foo: foo
div #{foo}
arguments for mixin arguments.attributes for (mixin) attributes.locals for template locals.examples for example mixin callsnpm install jade-doc
var jadeDoc = require('jade-doc');
jadeDoc({
input: '**/*.jade',
output: 'anything.json'
});
Optionally use it through the command line.
jade-doc input.jade
jade-doc input.jade --output output.json
jade-doc "**/*.jade" --output output.json
Output will look something like this.
[
{
"meta": {
"name": "foo",
"description": "foo description"
},
"file": "file.jade",
"source": "// foo",
"output": "<!-- foo-->"
}
]
FAQs
Jade documentation generator.
The npm package jade-doc receives a total of 8 weekly downloads. As such, jade-doc popularity was classified as not popular.
We found that jade-doc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.