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

docco-husky

v0.3.3

Published

Generated static project documentation primarily for node.js projects. A fork of Docco

Downloads

95

Readme

Overview

A streamlined static site generator for project documentation based on Docco. "Husky" because it's bigger and more irregular than Docco, like Husky Jeans you would buy at Sears back in the day.

A fork of Docco, intended to go beyond the appropriate scope of Docco itself. Forked because Docco itself is pretty simple and this is intended to diverge. The initial fork included merged pull requests from nevir and jswartwood for their work on supporting recursive directories and an improved "Jump To" menu.

Examples

Check out the generated documentation for this project.

Or these other samples

Installation

Possible Gotchas

  • Docco requires Pygments to be installed and will try to install it if it's not already.
  • Perl is required for cloc

To install via npm into your project:

npm install docco-husky

Install globally:

[sudo] npm install -g docco-husky

Or include as a dependency in your package.json

Generating Documentation

docco-husky will generate docs in a ./docs directory. It accepts multiple files (including wildcards) and directories for it to recurse.

docco-husky -name "<optional project name>" <list of files>

Examples

# from a local install
./node_modules/.bin/docco-husky app.js lib public

# with a project name
./node_modules/.bin/docco-husky -name "My Project" app.js lib public

# with wildcards
./node_modules/.bin/docco-husky -name "My Project" *.js lib public

# with global install
docco-husky -name "My Project" *.js lib public
		

Output

docco-husky will write generated files to ./docs .

For all source files, the output will be like

A readme.html will be generate and will include a formatted version of a README.md if your project includes it, some details from the a package.json file, and project stats generated by cloc.