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 🙏

© 2024 – Pkg Stats / Ryan Hefner

jsdoc2vuepress

v1.1.12

Published

Simple jsdoc2md wrapper to create ready to use markdown files for vuepress

Downloads

47

Readme

jsdoc2vuepress

TL;DR

If you use JSDoc annotations and Vuepress to generate your docs, this is for you.

About

jsdoc2vuepress will read your library's JSDoc annotations and generate the necessary markdown data to work in vuepress. It will also make Vuepress flowchart plugin annotations work and create a coverage report to easily add it to your docs.

jsdoc2vuepress is simple wrapper for JSDoc2MD, with some changes:

  1. Instead of using the method's signature as the "title" it will "demote" it to a simple paragraph (italics) and the name of the function is used as the title. This will avoid having long titles in the table of contents / sidebar menu.
  2. The output is modified so **Flowstart**: is changed back into a vuepress-flowchart-plugin compatible version (@flowstart). Same thing for Flowend.
  3. The defaults are compatible with yalt4node project (still private, soon will be public)

Usage

jsdoc2vuepres => will use default values ('src/*.{js,ts}' and 'dist/DOCS.md')

jsdoc2vuepres 'src/*.{js,ts}' => will use default output value ('dist/DOCS.md')

jsdoc2vuepres 'src/index.{js,ts}' => will use default output value ('dist/DOCS.md')

jsdoc2vuepres 'src/index.{js,ts}' 'output' => will use ('out/DOCS.md')

Note: If you installed this as a local dependency (not globally) you'll need to provide the full "relative" path like this: ./node_modules/.bin/jsdoc2vuepress

References

  • JSDocs: https://jsdoc.app
  • Vuepress: https://vuepress.vuejs.org
  • Vuepress flowchart plugin: https://github.com/ulivz/vuepress-plugin-flowchart
  • yalt4node: https://github.com/nriesco/yalt4node
  • JSDoc2MD: https://github.com/jsdoc2md/jsdoc-to-markdown

Example

Using this input:

/**
 * A quite wonderful function.
 * @param {object} - Privacy gown
 * @param {object} - Security
 * @returns {survival}
 */
function protection (cloak, dagger) {}

JSDoc2MD generates this MD:

## protection(cloak, dagger) ⇒ <code>survival</code>
A quite wonderful function.

**Kind**: global function

| Param  | Type                | Description  |
| ------ | ------------------- | ------------ |
| cloak  | <code>object</code> | Privacy gown |
| dagger | <code>object</code> | Security     |

and jsdoc2vuepress generates this one (the signature is no longer a header)

## protection
_protection(cloak, dagger) ⇒ <code>survival</code>_
A quite wonderful function.

**Kind**: global function

| Param  | Type                | Description  |
| ------ | ------------------- | ------------ |
| cloak  | <code>object</code> | Privacy gown |
| dagger | <code>object</code> | Security     |