Gathering detailed insights and metrics for js-comments
Gathering detailed insights and metrics for js-comments
Gathering detailed insights and metrics for js-comments
Gathering detailed insights and metrics for js-comments
npm install js-comments
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
30 Stars
87 Commits
6 Forks
5 Watching
2 Branches
2 Contributors
Updated on 01 Oct 2021
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
52.5%
61
Compared to previous day
Last week
22.2%
2,186
Compared to previous week
Last month
248%
5,297
Compared to previous month
Last year
-13.8%
17,152
Compared to previous year
3
Parse JavaScript code comments and generate API documentation.
Install with npm
1$ npm i js-comments --save
Install with bower
1$ bower install js-comments --save-dev
(Table of contents generated by [verb])
1var comments = require('js-comments');
Heads up!, only comments with @api public
will be rendered!
Parse comments from the given str
.
Params
str
{String}: The string to parse.options
{Object}: Options to pass to [parse-comments]returns
{Array}: Array of comment objects.Example
1var fs = require('fs'); 2var str = fs.readFileSync('foo.js', 'utf8'); 3comments.parse(str, options);
Process the given Lo-dash template
string, passing a comments
object as context.
Params
comments
{Array}: Array of comment objects.template
{String}: The lo-dash template to use.returns
{String}Example
1comments.render(obj, options);
Write markdown API documentation to the given dest
from the code
comments in the given JavaScript src
file.
Params
src
{String}: Source file path.dest
{String}: Destination file path.options
{Object}returns
{String}: API documentationInstall dev dependencies:
1$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright © 2014-2015 Jon Schlinkert Originally modified from scrawl.js. Copyright (c) 2014 Caolan McMahon, contributors. Released under the MIT license.
This file was generated by verb-cli on May 29, 2015.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More