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

grunt-docco-multi-dir

v1.0.3

Published

Create a multi-docco that hotlink between all generated input files

Readme

Grunt-docco-multi-dir allows an arbitrarily deep directory structure for your code, and the jump menu & templates properly reflect that structure. Additionally, it allows you to pass in a title for your project; no matter what doc page you are on, you know exactly where you are in the code hierarchy.

  • It is an improvement on grunt-docco-multi and employs some of the desired end results of grunt-docco-dir.
  • It uses a modified version of docco, called docco-multidir.

Improvements

  • A new docco option called projectName is passed into the template for rendering. This is coupled with other changes in docco-multidir, which put the full path to the file on the template.
  • Updated the code to use docco-multidir as a dependency, and not docco.
  • See docco-multidir for the list of other improvements.
  • Everything else is the same as "grunt-docco-multi" : "~0.0.2"

Installation

Install npm package, next to your project's Gruntfile:

npm install --save-dev grunt-docco-multi-dir

Add this line to your project's Gruntfile:

grunt.loadNpmTasks('grunt-docco-multi-dir');

Version

"grunt-docco-multi-dir" : "~1.0.3"

Configuration

docco is a multitask, so you can use it similary to lint, watch etc...

grunt.initConfig

...

docco:

  # ## use current sane defaults
  options:
    layout : "parallel"
    output : "docs/"
    projectName: "{insert your project name here}"

  # ## parse multiple files
  all:
    files:
      src: ['test/fixtures/*.coffee']

  # ## parse a single file
  single:
    files:
      src: ['test/fixtures/valid.litcoffee']

  # ## parse this file with linear output
  gruntfile:
    options:
      layout: "linear"
    files:
      src: 'Gruntfile.coffee'

  # ## nothing to parse
  empty: '404.coffee'

...

Options

Standard docco options are supported

config:
    layout:     'parallel'
    output:     'docs/'
    template:   null
    css:        null
    extension:  null
    projectName: '{insert your project name here}'