npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

doccomment

v0.0.4-rc4

Published

A very simple JSDoc-like code documentation parser & [markdown] generator

Readme

Doccomment

A very simple JSDoc-like documentation parser & documentation generator for NodeJS modules. Will not be getting a lot more tag support than it already has (as I don't feel it is needed).

Known Vulnerabilities

Dependencies Dev Dependencies Peer Dependencies

JavaScript Style Guide


Warning

This is not intended for use in anything important. It was mostly just a "can I do it?" project, and not some attempt to replace JSDoc or similar tools. It has not been well-tested or documented, and the code is a nightmare.


Usage

Install

yarn add doccomment - to install locally to a single project.


Synopsis

node /path/to/doccomment.js [options]


Examples

Parse documentation using default values from package.json:

node /path/to/doccomment.js


Recursively parse documentation for project --name of version --version starting with the source directory --source and targeting files that match --pattern. Generate output with a custom --generator, and write it to --out.

node /path/to/doccomment.js --name Test --version 1.0 --source ./ --pattern test --generator ./node_modules/doccomment-to-html/index.js --recursive --out test.html


Options

String name (-n|--name)

Name of the project; defaults to {./package.json}.name.

String version (-v|--version)

Documentation version; defaults to {./package.json}.version.

Path source (-s|--source)

The directory to search for source files to extract docs from; defaults to ./src.

RegExp|String pattern (-t|--pattern)

A pattern to select/ignore input files; defaults to /\*\.js/.

String format (-f|--format)

Format of output; defaults to md.

Path generator (-g|--generator)

Generator script for format; defaults to undefined.

Path intermediary (-i|--intermediary)

Intermediary (JSON) output file; defaults to ./doccomments.json.

Path out (-o|--out)

The output file; defaults to ./API.md.

Boolean recursive (-r|--recursive)

Recursively search for files in source directory; defaults to false.

Boolean extract (-e|--extract)

Extract documentation comments, but do not parse them; defaults to false.

Boolean parse (-p|--parse)

Parse to intermediary JSON, but do not build docs; defaults to false.


Supported Tags

@module <name>

The name of a module

@description <text>

Description for a module or method.

@property {type} <name> - <description>

A property of a module.

@method <name>

The name of a method.

@async

Method is async

@argument {type} <name> - <description>

Argument to a method

@returns {type} - <description>

Return value from a method.

@throws {type} - <description>

Method throws.