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

boxy-jsdoc-template

v2.0.2

Published

A clean and streamlined JSDoc 3 template (extended from Minami).

Downloads

256

Readme

Boxy JSDoc Template

A clean and streamlined JSDoc 3 template (extended from Minami).

screenshot

screenshot

See the template in action here and here.

Extends

Uses

Install

$ npm install --save-dev boxy-jsdoc-template

Usage

Clone repository to your designated jsdoc template directory, then:

$ jsdoc entry-file.js -t path/to/boxy-jsdoc-template

Via Node

npm i boxy-jsdoc-template -D

In your projects package.json file, add a generate script:

"script": {
  "doc": "jsdoc -c .jsdocrc"
}

In your .jsdocrc file, add a template option.

"opts": {
  "template": "node_modules/boxy-jsdoc-template"
}

Example JSDoc Config

{
    "tags": {
        "allowUnknownTags": true,
        "dictionaries": ["jsdoc"]
    },
    "source": {
        "include": ["lib", "package.json", "README.md"],
        "includePattern": ".js$",
        "excludePattern": "(node_modules/|docs)"
    },
    "plugins": [
        "plugins/markdown"
    ],
    "templates": {
        "cleverLinks": false,
        "monospaceLinks": true,
        "useLongnameInNav": false
    },
    "opts": {
        "destination": "./docs/",
        "encoding": "utf8",
        "private": true,
        "recurse": true,
        "template": "./node_modules/boxy-jsdoc-template"
    }
}

Specifying a number for useLongnameInNav it will be the max number of path elements to show in nav (starting from Class).

Changelog

v2.0.2

  • Bring back README list-item bullets
  • Properly style deprecated method/function params

v2.0.1

  • Update 'description' padding

v2.0.0

  • Fix issue where generation date in footer is wrong
  • Update styles
  • Support @copyright and @license in global objects
  • Update padding in 'exception' section

v1.3.0

  • Update properties output
  • Update params output
  • Remove unneeded CSS

v1.2.0

  • Update header info section
  • Move copyright tag to header info section
  • Move license tag to header info section
  • Update styles for <pre> tags.
  • Make anchor text bold
  • Add bg color to <pre> tags
  • Add 'break-word' CSS to <h1> tags
  • Decrease header sizes
  • For mobile nav, fix issue with hover state line-height
  • Update JSDoc link to open in _blank window

v1.0.1

  • Update 'properties' layout template
  • Remove <table> and rewrite completely to update the view
  • Improve mobile UI
  • Improve mobile UX
  • Update HTML to validate against W3C standards
  • Removed errors and ignored warnings
  • Improve source code view.
  • Update mobile nav UI
  • Add logic to hide mobile nav on list item click
  • Remove unused ionicons css
  • Move all scripts to bottom of body tag
  • Update js
  • Add list of members to nav panel
  • Add Members/Methods labels
  • Update home/readme styles
  • Remove unused static fonts
  • Improve mobile layout
  • Add author and license info to header.
  • Update generation date format
  • Remove extra whitespace in param defaults
  • Move source link to bottom of output stack.
  • Big layout redesign changes
  • Refactor param output
  • Add more obvious deprecation view

Thanks

Thanks to the author of the Minami theme and its contributors. Their theme and README served as a great base to build from.

License

Licensed under the Apache2 license.