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

doxie

v0.2.4

Published

The simplest doc generator you’ve seen.

Downloads

26

Readme

— But wait! We have jsDoc, docco, documentation and umpteen other doc generators. Do we really need another one?

— We’ve looked through all umpteen of them. We even heavily used one or the other. But what we’re after is flexibility. If you’re a perfectionist, construct your docs from the ground up, and polish them down to the very last detail to suit them to your liking. If you want decent results quickly, choose a ready-made theme. Probably you’re somewhere in between – so take a preset and tweak it a bit. We’re talking about total flexibility. This wasn’t possible before.

— OK, I get it now. But if you want generic stuff, there’s gulp, and there was grunt. Aren’t they de-facto tools for such things?

— Gulp is very flexible. But it’s designed to process individual files. Just like metalsmith is designed to process whole directories. We need another abstraction. We have functions, objects, or CSS classes to document – and often we don’t even care what file they’re in. We call these things docs. Gulp works with files, and doxie works with docs.

— Well, now it becomes clear. Thanks for the interview.

— You’re very welcome.

Made with doxie

These readmes have been rendered with doxie:

Installation

doxie is a command-line tool.

$ npm install --global doxie

doxie itself is just a slim core. Every feature is a plugin. So if you want to run doxie --filter --output, make sure you install doxie.filter and doxie.output first:

$ npm install --global doxie.filter doxie.output

Speaking of plugins, most of them are compatible with dox

$ npm install --global dox

Usage

SYNOPSIS

Usage: doxie [--help|-h]
   or: doxie (--<plugin> [<plugin options>])+

DESCRIPTION

http://npm.im/doxie The simplest docs generator you’ve seen

All it does is take an array of data and pipe it through a bunch of plugins (functions). Just keep in mind that many plugins will expect data compatible with http://npm.im/dox. That’s it.

doxie operates over stdio.

EXAMPLES

High level:

$ dox < myLibrary.js | doxie  \
$   --drop @private           \
$   --drop @protected         \
$   --sort by @module         \
$   --preset 1-liners         \
$   --inject into Readme.md

Low level:

$ doxie                                                      \
$   --filter build/filter.js                                 \
$   --render build/template.js                               \
$   --output                                                 \
$   < data.json                                              \
$   | cat build/Readme.overview.md - build/Readme.footer.md  \
$   > Readme.md

Note that not all of the above plugins are available at the time of writing.

POPULAR PLUGINS

--filter [<filter function (default: .doxie.filter.js)>]
    Filter comments through a custom function.
    <http://npm.im/doxie.filter>

--render [<template function (default: .doxie.render.js)>]
    Render comments with a simple, flexible function.
    <http://npm.im/doxie.render>

--output
    Output rendered comments.
    <http://npm.im/doxie.output>

For an up-to-date list of available plugins visit https://www.npmjs.com/browse/keyword/doxie-plugin.

License

MIT © Studio B12 GmbH